From 31b61c3406badbae9b41d5af1ae778310d7d3218 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Thu, 16 Feb 2023 00:39:28 +0100 Subject: removed: (zsh function) cd function --- config/essentials/zsh/functions.zsh | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'config') 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 -} -- cgit v1.2.3