zsh: prevented trying to pull something that isn't a repository
This commit is contained in:
parent
059d8d5a2c
commit
bd67d14fb2
1 changed files with 1 additions and 1 deletions
2
.zshrc
2
.zshrc
|
@ -174,7 +174,7 @@
|
|||
todo_dir="$(dirname "$(realpath ~/todo)")"
|
||||
if [ -z "$@" ];then
|
||||
cd "$(dirname "$(realpath ~/todo)")"
|
||||
git pull
|
||||
git rev-parse && git pull
|
||||
$EDITOR ~/todo
|
||||
elif [ "$@" = 'auto' ];then
|
||||
cd "$todo_dir"
|
||||
|
|
Loading…
Add table
Reference in a new issue