]> Sergey Matveev's repositories - dotfiles.git/commitdiff
exec optimization fetish
authorSergey Matveev <stargrave@stargrave.org>
Wed, 30 Sep 2020 18:13:22 +0000 (21:13 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Wed, 30 Sep 2020 18:13:22 +0000 (21:13 +0300)
bin/bin/tmux-menu-calc.sh
bin/bin/tmux-menu-dict.sh
bin/bin/tmux-menu-music.sh
bin/bin/tmux-menu-pass.sh

index b8ae8bcb0c5737025cdd2a8c2760d3433116b060..1d0e6b113e7dcae798967e7169ecdddf23525324 100755 (executable)
@@ -4,4 +4,4 @@ tmux has-session -t calc || {
     tmux new-session -d -s calc rlwrap -S "> " dc
     tmux set-option -t calc status off
 }
-tmux attach-session -t calc
+exec tmux attach-session -t calc
index d7cc8fcf66f47c7e92ee6ba799ed0d75a2393d51..0a048193d188600e7f91ab23bb8a8ec9125459ac 100755 (executable)
@@ -2,4 +2,4 @@
 
 echo -n "> "
 read word
-sdcv $word | less
+sdcv $word | exec less
index 12bc40bfa3409080fc48a2284781eaa82f34684f..a418f64f5fa00eb8ac4dd0541a30d2925e1f7d25 100755 (executable)
@@ -4,4 +4,4 @@ tmux has-session -t music || {
     tmux new-session -d -s music -c ~/tmp/music
     tmux set-option -t music status off
 }
-tmux attach-session -t music
+exec tmux attach-session -t music
index 369d022daf19ef16d872c0d4efd5ccfffb2e23be..bae3919327163d286c7ad3ad56a0bbe3ef969630 100755 (executable)
@@ -3,7 +3,6 @@
 while :; do
     echo -n "> "
     read pass
-    passman has "$pass" || continue
-    passman "$pass" >/dev/null
-    exit
+    passman has "$pass" && break
 done
+exec passman "$pass" >/dev/null