mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-22 22:45:37 +00:00
add syncnotes git automation
This commit is contained in:
parent
2152c1739c
commit
20a4e5b6ac
@ -42,6 +42,7 @@ SETUVAR _fish_abbr_pods:kubectl\x20get\x20pods\x20\x2dA
|
|||||||
SETUVAR _fish_abbr_public_2D_key:ssh\x2dkeygen\x20\x2dy\x20\x2df\x20\x7e/\x2essh/id_rsa\x20\x3e\x20\x7e/\x2essh/id_rsa\x2epub
|
SETUVAR _fish_abbr_public_2D_key:ssh\x2dkeygen\x20\x2dy\x20\x2df\x20\x7e/\x2essh/id_rsa\x20\x3e\x20\x7e/\x2essh/id_rsa\x2epub
|
||||||
SETUVAR _fish_abbr_py:python
|
SETUVAR _fish_abbr_py:python
|
||||||
SETUVAR _fish_abbr_runbootstrap:\x24DOTS/scripts/bootstrap
|
SETUVAR _fish_abbr_runbootstrap:\x24DOTS/scripts/bootstrap
|
||||||
|
SETUVAR _fish_abbr_sn:syncnotes
|
||||||
SETUVAR _fish_abbr_sshc:vim\x20\x7e/\x2essh/config
|
SETUVAR _fish_abbr_sshc:vim\x20\x7e/\x2essh/config
|
||||||
SETUVAR _fish_abbr_ssl:openssl\x20req\x20\x2dnew\x20\x2dnewkey\x20rsa\x3a2048\x20\x2dnodes\x20\x2dkeyout\x20server\x2ekey\x20\x2dout\x20server\x2ecsr
|
SETUVAR _fish_abbr_ssl:openssl\x20req\x20\x2dnew\x20\x2dnewkey\x20rsa\x3a2048\x20\x2dnodes\x20\x2dkeyout\x20server\x2ekey\x20\x2dout\x20server\x2ecsr
|
||||||
SETUVAR _fish_abbr_te:terraform
|
SETUVAR _fish_abbr_te:terraform
|
||||||
|
@ -46,4 +46,14 @@ function notes --description "Notes functions"
|
|||||||
vim ~/Documents/notes/$argv[1].md
|
vim ~/Documents/notes/$argv[1].md
|
||||||
end
|
end
|
||||||
|
|
||||||
|
abbr -a sn 'syncnotes'
|
||||||
|
function syncnotes --description "Full git commit on notes"
|
||||||
|
cd $HOME/Documents/notes
|
||||||
|
git pull
|
||||||
|
git add -A
|
||||||
|
git commit -m "autosync"
|
||||||
|
git push
|
||||||
|
cd -
|
||||||
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user