]> Sergey Matveev's repositories - dotfiles.git/commitdiff
No permanent dc history
authorSergey Matveev <stargrave@stargrave.org>
Wed, 30 Sep 2020 21:52:29 +0000 (00:52 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Wed, 30 Sep 2020 21:52:29 +0000 (00:52 +0300)
bin/bin/dc-wrapped.sh [new file with mode: 0755]
bin/bin/tmux-menu-calc.sh
zsh/.zshrc

diff --git a/bin/bin/dc-wrapped.sh b/bin/bin/dc-wrapped.sh
new file mode 100755 (executable)
index 0000000..11fdd21
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+exec rlwrap --history-filename /tmp/.dc_history --substitute-prompt "> " dc
index 1d0e6b113e7dcae798967e7169ecdddf23525324..6710019428a44b7a2ee08fa7b5c429bef3184179 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 tmux has-session -t calc || {
-    tmux new-session -d -s calc rlwrap -S "> " dc
+    tmux new-session -d -s calc ~/bin/dc-wrapped.sh
     tmux set-option -t calc status off
 }
 exec tmux attach-session -t calc
index c75045f70ef55b767d4b66b53d3b71a451cbc489..0210c727b7203a0745001831a3091dfa2fc5b146 100644 (file)
@@ -83,7 +83,7 @@ alias -g M="| less"
 alias -g W="| wc -l"
 alias mc="mc --nomouse"
 alias sent="mutt -f =sent-\`date '+%y-%m'\`"
-alias zc="rlwrap -S '> ' dc"
+alias zc=~/bin/dc-wrapped.sh
 
 f() {
     # find . -name "*$1*" -print