From 11dfb24f6d4f103cc030821d0696ddd5e006d2d1 Mon Sep 17 00:00:00 2001 From: Klesh Wong Date: Tue, 10 Nov 2020 12:04:30 +0800 Subject: [PATCH] [misc] read from clipboard --- fish/config/config.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fish/config/config.fish b/fish/config/config.fish index cd3374a..5292d52 100644 --- a/fish/config/config.fish +++ b/fish/config/config.fish @@ -6,7 +6,7 @@ function dt end 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 # for WSL