summaryrefslogtreecommitdiff
path: root/config/essentials
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2023-02-16 00:39:28 +0100
committerRaymaekers Luca <raymaekers.luca@gmail.com>2023-02-16 00:39:28 +0100
commit31b61c3406badbae9b41d5af1ae778310d7d3218 (patch)
treea24ad75942ed17c7dc7f32fd7145a1d7c87bfc2e /config/essentials
parent617096afd0f81cce3365c7a8c233bdb1b3d13984 (diff)
removed: (zsh function) cd function
Diffstat (limited to 'config/essentials')
-rw-r--r--config/essentials/zsh/functions.zsh11
1 files changed, 0 insertions, 11 deletions
diff --git a/config/essentials/zsh/functions.zsh b/config/essentials/zsh/functions.zsh
index a73ea15..759fc23 100644
--- a/config/essentials/zsh/functions.zsh
+++ b/config/essentials/zsh/functions.zsh
@@ -66,14 +66,3 @@ unzipp () {
__git_files () {
_wanted files expl 'local files' _files
}
-
-# allows changing to parent dir of file
-function cd () {
- if (( ${#argv} == 1 )) && [[ -f ${1} ]]; then
- [[ ! -e ${1:h} ]] && return 1
- print "Correcting ${1} to ${1:h}"
- builtin cd ${1:h}
- else
- builtin cd "$@"
- fi
-}