mirror of
https://github.com/sadan4/dotfiles.git
synced 2025-07-01 16:34:22 -04:00
fix scripts
This commit is contained in:
parent
6b79323a65
commit
47cf925a08
3 changed files with 41 additions and 24 deletions
|
@ -1,8 +1,14 @@
|
|||
echo PATH: $PATH 2>&1
|
||||
command -v xsel > /dev/null
|
||||
if [[ $? -eq 0 ]]; then
|
||||
xsel -ob && exit 0
|
||||
exit 0
|
||||
fi
|
||||
command -v wslclip > /dev/null
|
||||
if [[ $? -eq 0 ]]; then
|
||||
wslclip -g && exit 0
|
||||
fi
|
||||
exit 0
|
||||
fi
|
||||
|
||||
echo "failed to find clipboard command. install xsel or wslclip"
|
||||
exit 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue