nushell ..
This commit is contained in:
@@ -5,13 +5,23 @@ export alias lla = ls -la
|
|||||||
export alias lh = ls -lh
|
export alias lh = ls -lh
|
||||||
export alias lt = ls -l | sort-by modified | reverse
|
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] {
|
export def py [...rest: string] {
|
||||||
if (which ^py | is-not-empty) {
|
if (which ^py | is-not-empty) {
|
||||||
^py ...$rest
|
^py ...$rest
|
||||||
} else {
|
} else if (which ^python3 | is-not-empty) {
|
||||||
^python3 ...$rest
|
^python3 ...$rest
|
||||||
|
} else {
|
||||||
|
print "Error: Python is not installed or could not be found."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -81,3 +81,5 @@ export-env {
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export alias cdi = cd (ls **/ | get name | str join "\n" | fzf)
|
||||||
|
|||||||
Reference in New Issue
Block a user