backups and fish functions

This commit is contained in:
Noah Masur
2025-01-31 15:40:41 -05:00
parent b123ae3e69
commit e1f987e83b
13 changed files with 225 additions and 167 deletions

View File

@ -1,5 +0,0 @@
if count $argv >/dev/null
curl ipinfo.io/$argv
else
curl checkip.amazonaws.com
end

View File

@ -1,8 +0,0 @@
if test -n "$filename"
vim $NOTES_PATH/$filename.md
else
set file (ls $NOTES_PATH | fzf)
if [ $status -eq 0 ]
vim $NOTES_PATH/$file
end
end

View File

@ -17,5 +17,5 @@ set vimfile ( \
)
and set line_number (echo $vimfile | tr -d '\r' | cut -d':' -f2)
and set vimfile (echo $vimfile | tr -d '\r' | cut -d':' -f1)
and commandline -r "vim +$line_number $vimfile"
and commandline -r "vim +$line_number \"$vimfile\""
and commandline -f execute

View File

@ -1,7 +0,0 @@
set current_dir $PWD
cd $NOTES_PATH
git pull
git add -A
git commit -m autosync
git push
cd $current_dir