Compare commits
4 Commits
e6d62b9db7
...
f8564f4b79
Author | SHA1 | Date | |
---|---|---|---|
f8564f4b79 | |||
ea607c0113 | |||
6501690184 | |||
fab40434d0 |
@ -41,6 +41,14 @@ function musrec
|
|||||||
end
|
end
|
||||||
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
|
# problem solving
|
||||||
# ---------------
|
# ---------------
|
||||||
# use abbreviations instead of aliases/functions because
|
# use abbreviations instead of aliases/functions because
|
||||||
|
@ -127,6 +127,7 @@ function RunInput()
|
|||||||
let @x = join(readfile(inputfile), "\n") .. "\n\n"
|
let @x = join(readfile(inputfile), "\n") .. "\n\n"
|
||||||
Program
|
Program
|
||||||
normal G"xp
|
normal G"xp
|
||||||
|
Source
|
||||||
endfunction
|
endfunction
|
||||||
nnoremap <silent> <leader>ri :call RunInput()<cr>
|
nnoremap <silent> <leader>ri :call RunInput()<cr>
|
||||||
|
|
||||||
|
@ -23,5 +23,7 @@ rm -rf \
|
|||||||
.yarn \
|
.yarn \
|
||||||
.yarnrc
|
.yarnrc
|
||||||
|
|
||||||
|
# ipython supports XDG_CONFIG just not by default
|
||||||
|
mv ~/.ipython "$XDG_CONFIG_HOME"/ipython
|
||||||
|
|
||||||
rmdir Downloads Desktop 2>/dev/null
|
rmdir Downloads Desktop 2>/dev/null
|
||||||
|
14
src/.local/bin/ping-up.sh
Executable file
14
src/.local/bin/ping-up.sh
Executable 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
|
Loading…
x
Reference in New Issue
Block a user