[misc] read from clipboard

This commit is contained in:
Klesh Wong 2020-11-10 12:04:30 +08:00
parent 437913559e
commit 11dfb24f6d

View File

@ -6,7 +6,7 @@ function dt
end end
function clean-taobao-link function clean-taobao-link
echo "$argv" | sed 's/^\(.*\)?\(.*&\)\?\(id=[^&]\+\).*$/\1?\3/g' | xsel -sb xsel -ob | sed 's/^\(.*\)?\(.*&\)\?\(id=[^&]\+\).*$/\1?\3/g' | xsel -b
end end
# for WSL # for WSL