1
0
Fork 0
mirror of https://github.com/Phantop/dotfiles synced 2024-12-28 15:57:19 +00:00

Fish: add clip function

This commit is contained in:
Phantop 2020-07-19 22:11:21 -04:00
parent 971e08c2a7
commit 775faae9dd
2 changed files with 9 additions and 3 deletions

View file

@ -1,4 +1,4 @@
# Defined in /tmp/fish.n1quHQ/clean.fish @ line 2
# Defined in /tmp/fish.ZMRtWG/clean.fish @ line 2
function clean
up
fc-cache -f -v
@ -14,8 +14,6 @@ function clean
rm -r ~/.cache/*
rm -r ~/.nv/*
rm -r ~/.local/share/nvim/swap/
rm -r $D/Games/Emulators/*/canary
rm -r $D/Games/Emulators/*/*og*
s solbuild delete-cache
s sync
end

View file

@ -0,0 +1,8 @@
# Defined in /tmp/fish.VJPA2j/clip.fish @ line 1
function clip
if test $argv
echo $argv | xclip -i -selection clipboard
else
cat - | xclip -i -selection clipboard
end
end