diff options
| -rw-r--r-- | zsh/.zshrc-fn | 5 | 
1 files changed, 3 insertions, 2 deletions
| diff --git a/zsh/.zshrc-fn b/zsh/.zshrc-fn index f58df75..3745bcc 100644 --- a/zsh/.zshrc-fn +++ b/zsh/.zshrc-fn @@ -3,10 +3,11 @@ defix() {  }  rd() { # Rename current directory. -	curr="$(dirname "$(pwd)")" +	[ "$1" = "" ] && echo "rd: rename directory: new name missing" && return +	curr="$(basename "$(pwd)")"  	cd ..  	mv "$curr" "$1" -	cd "$curr" || return +	cd "$1" || return  }  # pulseaudio - this is a temporary solution | 
