9 current 2024-05-27 22:09:57 24.11.20240524.bfb7a88 Unknown *

This commit is contained in:
sadan 2024-05-27 22:09:59 -04:00
parent a04bcb55aa
commit 3033274674
No known key found for this signature in database

View file

@ -80,21 +80,21 @@ in
(pkgs.writeShellScriptBin "paste" ''
command -v xsel > /dev/null
if [[ $? -eq 0 ]]; then
xsel -ob && return
xsel -ob && exit 0
fi
command -v wslclip > /dev/null
if [[ $? -eq 0 ]]; then
wslclip -g && return
wslclip -g && exit 0
fi
'')
(pkgs.writeShellScriptBin "copy" ''
command -v xsel > /dev/null
if [[ $? -ne 0 ]]; then
xsel -ib $@ && return
if [[ $? -eq 0 ]]; then
xsel -ib $@ && exit 0
fi
command -v wslclip > /dev/null
if [[ $? -ne 0 ]]; then
wslclip $@ && return
if [[ $? -eq 0 ]]; then
wslclip $@ && exit 0
fi
'')