diff --git a/.zshrc b/.zshrc index 751a5bd..430fc25 100644 --- a/.zshrc +++ b/.zshrc @@ -164,6 +164,7 @@ todo() { ( # subshell to protect against directory changes if [ -z "$@" ];then + cd "$(dirname "$(realpath ~/todo)")" $EDITOR ~/todo else cd "$(dirname "$(realpath ~/todo)")"