Better stuff

This commit is contained in:
Thomas Forgione 2023-11-07 18:27:51 +01:00
parent 4116dc127f
commit b21dd18caf
2 changed files with 17 additions and 6 deletions

2
.gitignore vendored
View File

@ -1,6 +1,6 @@
zsh/extraconfig.zsh
zsh/env.zsh
bash/extraconfig.bash
nushell/history.txt
nushell/history.*
.data
bin-extra

View File

@ -7,6 +7,18 @@ $env.config.cursor_shape = {
vi_normal: underscore
}
$env.config.history = {
max_size: 100_000_000_000_000
sync_on_enter: true
file_format: "sqlite"
isolation: false
}
$env.config.filesize = {
metric: false
format: "auto"
}
# ls aliases
alias builtin_ls = ls
@ -19,20 +31,19 @@ def ls [dir?: string] {
}
def la [dir?: string] {
builtin_ls -a (if $dir == null { "" } else { $dir }) | sort-by type name -i
builtin_ls -al (if $dir == null { "" } else { $dir }) | sort-by type name -i | select mode name target user size modified
}
def ll [dir?: string] {
builtin_ls (if $dir == null { "" } else { $dir }) | sort-by type name -i
builtin_ls -l (if $dir == null { "" } else { $dir }) | sort-by type name -i | select name type target user size modified
}
# cool df
def df [] {
^df -h
| str replace "Sys. de fichiers" "@1"
| str replace "Monté sur" "@2"
| str replace "Mounted on" "@"
| detect columns
| rename "Sys. de fichiers" "Taille" "Utilisé" "Dispo" "Uti%" "Monté sur"
| rename "Filesystem" "Size" "Used" "Avail" "Use%" "Mounted on"
}
# vim aliases