Skip to content
This repository was archived by the owner on Aug 30, 2026. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion defaults/bash/aliases
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ alias lt='eza --tree --level=2 --long --icons --git'
alias lta='lt -a'
alias ff="fzf --preview 'batcat --style=numbers --color=always {}'"
alias fd='fdfind'
alias cd='z'

# Directories
alias ..='cd ..'
Expand Down
14 changes: 14 additions & 0 deletions defaults/bash/init
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,20 @@ fi

if command -v zoxide &> /dev/null; then
eval "$(zoxide init bash)"
# Smart cd: use builtin for direct paths, zoxide for fuzzy matching
# This is more efficient and handles non-interactive shells gracefully
cd() {
if [ $# -eq 0 ]; then
builtin cd ~
elif [ -d "$1" ]; then
builtin cd "$1"
elif declare -f __zoxide_z &>/dev/null; then
__zoxide_z "$@"
else
# Fallback for non-interactive shells where zoxide isn't available
builtin cd "$@"
fi
}
fi

if command -v fzf &> /dev/null; then
Expand Down