Move command into function
This commit is contained in:
parent
265e5f8a15
commit
0e29c016c5
2 changed files with 11 additions and 1 deletions
|
@ -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 -
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue