Skip to content

Commit

Permalink
FEATURE: add ls | grid as alias and hook to nushell (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
amtoine authored Dec 17, 2022
1 parent d8d8839 commit c979cf5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .config/nushell/lib/core/hooks.nu
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export alias hooks = {
}]
env_change: {
PWD: [{|before, after|
$nothing # replace with source code to run if the PWD environment is different since the last repl input
print (ls | sort-by type name -i | grid -c | str trim) # replace with source code to run if the PWD environment is different since the last repl input
}]
}
}
1 change: 1 addition & 0 deletions .config/nushell/lib/personal/aliases.nu
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ alias mv = mv --verbose
alias cb = ^cbonsai --infinite --live --base=1 --wait=2 --time=10

alias sl = sl -aw -20
alias lsg = (ls | sort-by type name -i | grid -c | str trim)

0 comments on commit c979cf5

Please sign in to comment.