diff --git a/smartcd.sh b/smartcd.sh index 5db9dcf..dcf0be5 100644 --- a/smartcd.sh +++ b/smartcd.sh @@ -86,6 +86,11 @@ __smartcd__() { # feature parent_dir_hop() { + if [[ $1 = "" ]]; then + builtin cd .. && generate_recent_dir_log + return + fi + local parent_dir_log=$( mktemp ) # temporary file to store parent directories's absolute paths _path=${PWD%/*}