X-Git-Url: http://www.git.stargrave.org/?p=dotfiles.git;a=blobdiff_plain;f=bin%2Fbin%2Fdc-wrapped.sh;fp=bin%2Fbin%2Fdc-wrapped.sh;h=74d4af713c50e2a32065630c8f4786c4e6c5c843;hp=64211fce9d0551cbf2622f4520ba88df51907d6b;hb=d4ca812e1d6cfda1c41a4cfa4ab5bb06365ca46f;hpb=e39b00703c08d5ea469301c0e4300c8c6b437a66 diff --git a/bin/bin/dc-wrapped.sh b/bin/bin/dc-wrapped.sh index 64211fc..74d4af7 100755 --- a/bin/bin/dc-wrapped.sh +++ b/bin/bin/dc-wrapped.sh @@ -2,10 +2,13 @@ # natural logarithm: 1000lLx 10lLx /p # sum of everything in stack: lSxp -pre="5k 10o -[1-d2+/d2*Skd*Sy0Ss10K^Sp[d1r/lk*ls+lsrdss-lp*d*1[s_q]s_>_lkly*sk2+lfx]Sf1lfxLsLkLyLpLfs_s_s_s_]sL +pre="5k 10o \ +[1-d2+/d2*Skd*Sy0Ss10K^Sp[d1r/lk*ls+lsrdss-lp*d*1[s_q]s_>_lkly*sk2+lfx]Sf1lfxLsLkLyLpLfs_s_s_s_]sL \ [0d[+2z>a]salax]sS " - -sleep 0.01 # do not know why, but only with it it works in tmux menu -exec rlwrap --history-filename /tmp/.dc_history --substitute-prompt "> " --pre-given "$pre" dc +exec rlwrap \ + --history-filename /tmp/.dc_history \ + --substitute-prompt "> " \ + --prompt-colour=red \ + --wait-before-prompt -1 \ + --pre-given "$pre" dc