clean up bootstrap scripts and notes

This commit is contained in:
Noah Masur
2020-11-15 09:47:29 -05:00
parent cec0f4789c
commit ec53a7ed7f
6 changed files with 48 additions and 49 deletions

View File

@ -33,19 +33,19 @@ function notes --description "Notes functions"
cd -
end
function wiki --description "Open vimwiki file"
function note --description "Edit or create a note" -a "filename"
cd $HOME/Documents/notes
set file (ls | fzf)
if [ $status -eq 0 ]
vim $file
if test -n "$filename"
vim $filename.md
else
set file (ls | fzf)
if [ $status -eq 0 ]
vim $file
end
end
cd -
end
function note --description "Edit or create a note"
vim ~/Documents/notes/$argv[1].md
end
abbr -a sn 'syncnotes'
function syncnotes --description "Full git commit on notes"
cd $HOME/Documents/notes