diff --git a/.gitignore b/.gitignore index 1025d58..27c3231 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,6 @@ zsh/extraconfig.zsh zsh/env.zsh bash/extraconfig.bash -nushell/history.txt +nushell/history.* .data bin-extra diff --git a/nushell/config.nu b/nushell/config.nu index 9a49f9d..fcbc53a 100644 --- a/nushell/config.nu +++ b/nushell/config.nu @@ -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