Change xclip to xsel in order to work inside tmux

This commit is contained in:
Thomas Dehaeze 2020-03-11 10:42:03 +01:00
parent ec373cca58
commit e9a071d844

View File

@ -274,9 +274,9 @@ The requirement is to have =pdftk= or =stapler= installed.
:END: :END:
#+begin_src bash #+begin_src bash
if [ $TMUX ]; then 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 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 fi
#+end_src #+end_src