From e9a071d844d018f91e2a64de22eb0a2d4f4b7af1 Mon Sep 17 00:00:00 2001 From: Thomas Dehaeze Date: Wed, 11 Mar 2020 10:42:03 +0100 Subject: [PATCH] Change xclip to xsel in order to work inside tmux --- dotfiles/ranger.org | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dotfiles/ranger.org b/dotfiles/ranger.org index 59916b3..29737af 100644 --- a/dotfiles/ranger.org +++ b/dotfiles/ranger.org @@ -274,9 +274,9 @@ The requirement is to have =pdftk= or =stapler= installed. :END: #+begin_src bash if [ $TMUX ]; then - tmux split -v -l 1 curl --progress-bar -F"file=@$1" https://0x0.st | xclip -in -selection clipboard && tmux select-pane -U + tmux split -v -l 1 "curl --progress-bar -F\"file=@$1\" https://0x0.st | xsel -ib;" && tmux select-pane -U else - curl --progress-bar -F"file=@$1" https://0x0.st | xclip -in -selection clipboard; + curl --progress-bar -F"file=@$1" https://0x0.st | xsel -ib; fi #+end_src