diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-02-16 00:39:28 +0100 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-02-16 00:39:28 +0100 |
commit | 31b61c3406badbae9b41d5af1ae778310d7d3218 (patch) | |
tree | a24ad75942ed17c7dc7f32fd7145a1d7c87bfc2e /config | |
parent | 617096afd0f81cce3365c7a8c233bdb1b3d13984 (diff) |
removed: (zsh function) cd function
Diffstat (limited to 'config')
-rw-r--r-- | config/essentials/zsh/functions.zsh | 11 |
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 -} |