nushell config
This commit is contained in:
21
nushell/modules/pj_aliases.nu
Normal file
21
nushell/modules/pj_aliases.nu
Normal file
@@ -0,0 +1,21 @@
|
||||
export alias l = ls
|
||||
export alias ll = ls -l
|
||||
export alias la = ls -a
|
||||
export alias lla = ls -la
|
||||
export alias lh = ls -lh
|
||||
export alias lt = ls -l | sort-by modified | reverse
|
||||
|
||||
export alias cdi = cd (ls **/ | get name | str join "\n" | fzf)
|
||||
|
||||
export def py [...rest: string] {
|
||||
if (which ^py | is-not-empty) {
|
||||
^py ...$rest
|
||||
} else {
|
||||
^python3 ...$rest
|
||||
}
|
||||
}
|
||||
|
||||
export alias weather = curl wttr.in
|
||||
export alias moon = curl wttr.in/Moon
|
||||
export alias quote = curl https://api.quotable.io/random | from json | get content
|
||||
export alias dadjoke = curl -H "Accept: application/json" https://icanhazdadjoke.com/ | from json | get joke
|
||||
Reference in New Issue
Block a user