Skip to content

Commit e401bb6

Browse files
committed
Prefer xsel to xclip
Fixes #114
1 parent e8a03cf commit e401bb6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/helpers.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,14 +132,14 @@ clipboard_copy_command() {
132132
fi
133133
elif command_exists "clip.exe"; then # WSL clipboard command
134134
echo "clip.exe"
135-
elif command_exists "xclip"; then
136-
local xclip_selection
137-
xclip_selection="$(yank_selection)"
138-
echo "xclip -selection $xclip_selection"
139135
elif command_exists "xsel"; then
140136
local xsel_selection
141137
xsel_selection="$(yank_selection)"
142138
echo "xsel -i --$xsel_selection"
139+
elif command_exists "xclip"; then
140+
local xclip_selection
141+
xclip_selection="$(yank_selection)"
142+
echo "xclip -selection $xclip_selection"
143143
elif command_exists "putclip"; then # cygwin clipboard command
144144
echo "putclip"
145145
elif [ -n "$(custom_copy_command)" ]; then

0 commit comments

Comments
 (0)