X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=bin%2Fbin%2Fdc-wrapped.sh;fp=bin%2Fbin%2Fdc-wrapped.sh;h=64211fce9d0551cbf2622f4520ba88df51907d6b;hb=5a3ff6b99e9b9baa5def3291e36c47943c6d5ba2;hp=11fdd21fa640126f8509bef2a4701442105f7b13;hpb=4ef6a747d4c45ef9c5dbf7e126a1376b018eb7b4;p=dotfiles.git diff --git a/bin/bin/dc-wrapped.sh b/bin/bin/dc-wrapped.sh index 11fdd21..64211fc 100755 --- a/bin/bin/dc-wrapped.sh +++ b/bin/bin/dc-wrapped.sh @@ -1,3 +1,11 @@ #!/bin/sh -exec rlwrap --history-filename /tmp/.dc_history --substitute-prompt "> " dc +# 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 +[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