diff options
| author | joe <rbo@gmx.us> | 2025-09-27 21:50:18 +0200 |
|---|---|---|
| committer | joe <rbo@gmx.us> | 2025-09-27 21:50:18 +0200 |
| commit | 951cf37bd0f80f19120b2bbd8e0d3f4a47045d16 (patch) | |
| tree | 546b3891acb48d77a2b2452cf5574cb981e25ec4 /st-cpyout | |
| parent | up (diff) | |
| download | st-951cf37bd0f80f19120b2bbd8e0d3f4a47045d16.tar.gz st-951cf37bd0f80f19120b2bbd8e0d3f4a47045d16.tar.bz2 st-951cf37bd0f80f19120b2bbd8e0d3f4a47045d16.tar.xz st-951cf37bd0f80f19120b2bbd8e0d3f4a47045d16.tar.zst st-951cf37bd0f80f19120b2bbd8e0d3f4a47045d16.zip | |
good
Diffstat (limited to 'st-cpyout')
| -rwxr-xr-x | st-cpyout | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -5,11 +5,10 @@ # xclip required for this script. # By Jaywalker and Luke # Adapted for FreeBSD by Joe -mem=$(cat) -mem=$(printf "%s" "$mem" | sed 's/\x0//g') +mem=$(sed 's/^ $//g' | sed 's/\x0//g') ps1=$(printf "%s" "$mem" | tail -n1 | - sed 's/%.\+/%/') + sed -E 's/([%,#,>]).*/\1/') chosen=$(printf "%s" "$mem" | grep -F "$ps1" | sed '$ d' | |
