diff --git a/.config/zsh/zshrc.d/40-functions.zsh b/.config/zsh/zshrc.d/40-functions.zsh index f861e57..0986edf 100644 --- a/.config/zsh/zshrc.d/40-functions.zsh +++ b/.config/zsh/zshrc.d/40-functions.zsh @@ -738,8 +738,8 @@ rmdir() { if (( $# == 1 )) && [[ $1 == '.' ]]; then to_del="$PWD" - cd .. - command rmdir "$to_del" + pushd -q .. + command rmdir "$to_del" || popd -q else command rmdir "$@" fi