nushell ..

This commit is contained in:
2026-02-08 17:20:43 +08:00
parent bbc0d2f0a1
commit e384a4ad0c
2 changed files with 14 additions and 2 deletions

View File

@@ -5,13 +5,23 @@ 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 alias .. = cd ..
export alias ... = cd ../..
export alias .... = cd ../../..
export alias ..... = cd ../../../..
export alias ...... = cd ../../../../..
export alias ....... = cd ../../../../../..
export alias ........ = cd ../../../../../../..
export alias .......... = cd ../../../../../../../..
export def py [...rest: string] {
if (which ^py | is-not-empty) {
^py ...$rest
} else {
} else if (which ^python3 | is-not-empty) {
^python3 ...$rest
} else {
print "Error: Python is not installed or could not be found."
}
}

View File

@@ -81,3 +81,5 @@ export-env {
]
}
}
export alias cdi = cd (ls **/ | get name | str join "\n" | fzf)