st

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 1d1fefcd7b7df5736b510d9aeb812befe4b8fdf6
parent baa9fa076a4e334e04532b218a925b0a8e367a8c
Author: Luke Smith <luke@lukesmith.xyz>
Date:   Wed, 15 Apr 2020 16:43:26 -0400

Merge branch 'master' of github.com:LukeSmithxyz/st

Diffstat:
Mst-copyout | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/st-copyout b/st-copyout @@ -6,6 +6,7 @@ tmpfile=$(mktemp /tmp/st-cmd-output.XXXXXX) trap 'rm "$tmpfile"' 0 1 15 sed -n "w $tmpfile" +sed -i 's/\x0//g' "$tmpfile" ps1="$(grep "\S" "$tmpfile" | tail -n 1 | sed 's/^\s*//' | cut -d' ' -f1)" chosen="$(grep -F "$ps1" "$tmpfile" | sed '$ d' | tac | dmenu -p "Copy which command's output?" -i -l 10 | sed 's/[^^]/[&]/g; s/\^/\\^/g')" eps1="$(echo "$ps1" | sed 's/[^^]/[&]/g; s/\^/\\^/g')"