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:
parent
971e08c2a7
commit
775faae9dd
|
@ -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
|
||||
|
|
8
.config/fish/functions/clip.fish
Normal file
8
.config/fish/functions/clip.fish
Normal 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
|
Loading…
Reference in a new issue