From: Armaan Bhojwani Date: Mon, 29 Nov 2021 02:45:15 +0000 (-0500) Subject: ksh: uclip: use xsel instead of xclip X-Git-Url: https://git.armaanb.net/?p=dotfiles.git;a=commitdiff_plain;h=HEAD ksh: uclip: use xsel instead of xclip --- diff --git a/.kshrc b/.kshrc index ad59982..8d6892c 100644 --- a/.kshrc +++ b/.kshrc @@ -16,8 +16,7 @@ ufile() { ext=$(printf "%s" "$1" | awk -F . '{print $NF}') fname="$(basename ${2:-tmp$RANDOM.$ext})" rsync "$1" "l.armaanb.net:/var/www/htdocs/l.armaanb.net/$fname" - printf "https://l.armaanb.net/%s\n" "$fname" | xclip && \ - xclip -o + printf "https://l.armaanb.net/%s\n" "$fname" | xsel -sel c } export GPG_TTY="$(tty)"