]> Sergey Matveev's repositories - dotfiles.git/commitdiff
Be friendly with line edits
authorSergey Matveev <stargrave@stargrave.org>
Mon, 17 May 2021 10:52:49 +0000 (13:52 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Mon, 17 May 2021 10:52:49 +0000 (13:52 +0300)
bin/bin/tmux-menu-dict.sh

index 1009d3846a7994d85538f5fa7f9bac382f01f1f4..0badc5cc86fe2d255995e17b7d493387880a1dfc 100755 (executable)
@@ -1,5 +1,4 @@
 #!/bin/sh
 
-echo -n "> "
-read word
+word=$(rlwrap -S "> " sh -c 'read word ; echo $word')
 sdcv "$word" | exec less