30 lines
907 B
Nu
30 lines
907 B
Nu
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 .. = cd ..
|
|
export alias ... = cd ../..
|
|
export alias .... = cd ../../..
|
|
export alias ..... = cd ../../../..
|
|
export alias ...... = cd ../../../../..
|
|
export alias ....... = cd ../../../../../..
|
|
export alias ........ = cd ../../../../../../..
|
|
export alias .......... = cd ../../../../../../../..
|
|
|
|
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
|
|
|
|
# --- System ---
|
|
export def df [] {
|
|
if (which ^df | is-not-empty) {
|
|
^df -h
|
|
} else {
|
|
^wmic logicaldisk get size,freespace,caption
|
|
}
|
|
}
|