1
0
Fork 0
mirror of https://github.com/Phantop/dotfiles synced 2024-11-30 18:43:17 +00:00

Fish: Less redundant update and timer functions

This commit is contained in:
Phantop 2019-08-18 13:52:24 -04:00
parent dd545a4a7d
commit 6a0016768d
2 changed files with 9 additions and 17 deletions

View file

@ -1,14 +1,10 @@
# Defined in /tmp/fish.HpGyIZ/timer.fish @ line 2
# Defined in /tmp/fish.99BpV1/timer.fish @ line 2
function timer
if tty | grep 'not a tty'
qb / ":quickmark-load timer";
else
while true
tmux new-session -d 'while true
for i in (seq -w 1200 -1 0)
echo (math -s0 $i/60):(math $i%60)
sleep 1
end
zenity --info --text=Time to take a break!
end
end
end'
end

View file

@ -1,8 +1,4 @@
# Defined in /tmp/fish.qPw09H/up.fish @ line 2
# Defined in /tmp/fish.xDL739/up.fish @ line 2
function up
if tty | grep 'not a tty'
st -e sudo eopkg up --y
else
se up --y
end
end