]> Sergey Matveev's repositories - dotfiles.git/commitdiff
Simplify single line reading
authorSergey Matveev <stargrave@stargrave.org>
Fri, 11 Jun 2021 12:17:33 +0000 (15:17 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Fri, 11 Jun 2021 12:17:33 +0000 (15:17 +0300)
bin/bin/tmux-menu-dict.sh

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