Compare commits

...

4 Commits

Author SHA1 Message Date
f8564f4b79
fish: add git aliases 2023-05-06 16:54:01 -04:00
ea607c0113
ping-up.sh: added 2023-05-06 16:50:39 -04:00
6501690184
cleanup: add ipython 2023-05-06 16:49:53 -04:00
fab40434d0
nvim: go back to source code when running <leader>ri 2023-05-06 11:30:35 -04:00
4 changed files with 25 additions and 0 deletions

View File

@ -41,6 +41,14 @@ function musrec
end
end
# git stuff
abbr -a -- gs git status
abbr -a -- gl git log
abbr -a -- gc git commit -S
abbr -a -- gca git commit -aS
abbr -a -- gp git push
abbr -a --position anywhere -- gh "&& git push gh"
# problem solving
# ---------------
# use abbreviations instead of aliases/functions because

View File

@ -127,6 +127,7 @@ function RunInput()
let @x = join(readfile(inputfile), "\n") .. "\n\n"
Program
normal G"xp
Source
endfunction
nnoremap <silent> <leader>ri :call RunInput()<cr>

View File

@ -23,5 +23,7 @@ rm -rf \
.yarn \
.yarnrc
# ipython supports XDG_CONFIG just not by default
mv ~/.ipython "$XDG_CONFIG_HOME"/ipython
rmdir Downloads Desktop 2>/dev/null

14
src/.local/bin/ping-up.sh Executable file
View File

@ -0,0 +1,14 @@
#!/bin/sh
# ping until successful, then alert
while true; do
if ping -c 1 $1; then
echo Ping successful
notify-send -a "ping-up" "Ping is successful"
figlet Ping successful
tput bel
break
else
sleep 5
fi
done