mirror of
https://github.com/sadan4/dotfiles.git
synced 2025-01-18 11:13:30 -05:00
9 current 2024-05-27 22:09:57 24.11.20240524.bfb7a88 Unknown *
This commit is contained in:
parent
a04bcb55aa
commit
3033274674
1 changed files with 6 additions and 6 deletions
|
@ -80,21 +80,21 @@ in
|
||||||
(pkgs.writeShellScriptBin "paste" ''
|
(pkgs.writeShellScriptBin "paste" ''
|
||||||
command -v xsel > /dev/null
|
command -v xsel > /dev/null
|
||||||
if [[ $? -eq 0 ]]; then
|
if [[ $? -eq 0 ]]; then
|
||||||
xsel -ob && return
|
xsel -ob && exit 0
|
||||||
fi
|
fi
|
||||||
command -v wslclip > /dev/null
|
command -v wslclip > /dev/null
|
||||||
if [[ $? -eq 0 ]]; then
|
if [[ $? -eq 0 ]]; then
|
||||||
wslclip -g && return
|
wslclip -g && exit 0
|
||||||
fi
|
fi
|
||||||
'')
|
'')
|
||||||
(pkgs.writeShellScriptBin "copy" ''
|
(pkgs.writeShellScriptBin "copy" ''
|
||||||
command -v xsel > /dev/null
|
command -v xsel > /dev/null
|
||||||
if [[ $? -ne 0 ]]; then
|
if [[ $? -eq 0 ]]; then
|
||||||
xsel -ib $@ && return
|
xsel -ib $@ && exit 0
|
||||||
fi
|
fi
|
||||||
command -v wslclip > /dev/null
|
command -v wslclip > /dev/null
|
||||||
if [[ $? -ne 0 ]]; then
|
if [[ $? -eq 0 ]]; then
|
||||||
wslclip $@ && return
|
wslclip $@ && exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
'')
|
'')
|
||||||
|
|
Loading…
Reference in a new issue