Move command into function

This commit is contained in:
Nicole Tietz-Sokolskaya 2019-03-12 17:38:21 -04:00
parent 265e5f8a15
commit 0e29c016c5
2 changed files with 11 additions and 1 deletions

View file

@ -52,4 +52,14 @@ configure_completions() {
fi
}
vimwiki() {
cd ~/Code/ntietz/vimwiki
git pull
vim -c "VimwikiIndex"
git add -A
git commit -am "Auto-commit ($(date))"
git push
cd -
}

View file

@ -10,7 +10,7 @@ configure_completions
alias vim="nvim"
alias notes="vim ~/notes.md"
alias vw="cd ~/Code/ntietz/vimwiki; git pull; nvim -c \"VimwikiIndex\"; git add -A && git commit -am \"Auto-commit ($(date))\" && git push; cd -"
alias vw="vimwiki"
alias update_configs="cd ~/Code/ntietz/config; git pull; cd -; source ~/.profile"
# default editor