Nushell config

This commit is contained in:
Thomas Forgione 2023-11-08 12:58:43 +01:00
parent eeb493442b
commit 3d0a490cc4
2 changed files with 2 additions and 0 deletions

View File

@ -107,6 +107,7 @@ def ls [dir?: string] {
def la [dir?: string] { def la [dir?: string] {
_ls -al (if $dir == null { "" } else { $dir }) _ls -al (if $dir == null { "" } else { $dir })
| sort-by type name -i | sort-by type name -i
| each {|x| return (echo $x | update mode (_ls_format_mode $x.mode))}
| select mode name target user size modified | select mode name target user size modified
} }

View File

@ -212,6 +212,7 @@ $env.LS_COLORS = ([
"*.ts=1;33" # TypeScript "*.ts=1;33" # TypeScript
"*.rs=1;33" # Rust "*.rs=1;33" # Rust
"*.elm=1;33" # Elm "*.elm=1;33" # Elm
"*.nu=1;33" # Nushell
# Build / doc files # Build / doc files
"*Makefile=1;4;33" # Makefile "*Makefile=1;4;33" # Makefile