mirror of
https://github.com/basecamp/omarchy.git
synced 2025-07-27 12:19:24 +00:00
Only show where we went if we went through z
This commit is contained in:
@ -6,7 +6,15 @@ alias lta='lt -a'
|
||||
alias ff="fzf --preview 'batcat --style=numbers --color=always {}'"
|
||||
alias fd='fdfind'
|
||||
alias cd="zd"
|
||||
zd() { [ $# -eq 0 ] && cd ~ && return || { z "$@" && printf " \U000F17A9 " && pwd; }; }
|
||||
zd() {
|
||||
if [ $# -eq 0 ]; then
|
||||
builtin cd ~ && return
|
||||
elif [ -d "$1" ]; then
|
||||
builtin cd "$1"
|
||||
else
|
||||
z "$@" && printf " \U000F17A9 " && pwd || echo "Error: Directory not found"
|
||||
fi
|
||||
}
|
||||
|
||||
# Directories
|
||||
alias ..='cd ..'
|
||||
|
Reference in New Issue
Block a user