zsh: todo() now changes the working dir
This commit is contained in:
parent
f26343fc7a
commit
84799e257c
1 changed files with 1 additions and 0 deletions
1
.zshrc
1
.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)")"
|
||||
|
|
Loading…
Add table
Reference in a new issue