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" ''
|
||||
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
|
||||
|
||||
'')
|
||||
|
|
Loading…
Reference in a new issue