Remove custom cd function from default zshrc

Overriding a builtin like cd causes issues with tooling and
scripts that expect standard cd behavior.
This commit is contained in:
nevaforget 2026-03-30 22:40:53 +02:00
parent 2fba1b571d
commit 65e2e54024

View File

@ -65,15 +65,6 @@ if [ -d "$HOME/.local/bin" ]; then
PATH="$HOME/.local/bin:$PATH"
fi
# --- cd with auto-listing ---
function cd() {
new_directory="$*";
if [ $# -eq 0 ]; then
new_directory=${HOME};
fi;
builtin cd "${new_directory}" && eza -lF --icons --color=always --group-directories-first
}
# --- Key bindings ---
bindkey "^[[3~" delete-char
bindkey "^[[H" beginning-of-line