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/extraconfig.zsh
zsh/env.zsh zsh/env.zsh
bash/extraconfig.bash bash/extraconfig.bash
nushell/history.txt nushell/history.*
.data .data
bin-extra bin-extra

View File

@ -7,6 +7,18 @@ $env.config.cursor_shape = {
vi_normal: underscore 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 # ls aliases
alias builtin_ls = ls alias builtin_ls = ls
@ -19,20 +31,19 @@ def ls [dir?: string] {
} }
def la [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] { 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 # cool df
def df [] { def df [] {
^df -h ^df -h
| str replace "Sys. de fichiers" "@1" | str replace "Mounted on" "@"
| str replace "Monté sur" "@2"
| detect columns | detect columns
| rename "Sys. de fichiers" "Taille" "Utilisé" "Dispo" "Uti%" "Monté sur" | rename "Filesystem" "Size" "Used" "Avail" "Use%" "Mounted on"
} }
# vim aliases # vim aliases