mirror of
https://github.com/nmasur/dotfiles
synced 2025-07-05 17:20:13 +00:00
clean up bootstrap scripts and notes
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user