Files
TerminalPolyjuice/nushell/modules/pj_aliases.nu
2026-01-30 16:48:11 +08:00

22 lines
643 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 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