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:
parent
2fba1b571d
commit
65e2e54024
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user