1
0
Fork 0
mirror of https://github.com/Phantop/dotfiles synced 2024-12-23 21:56:45 +00:00

Add .local/bin with clip command

This commit is contained in:
Phantop 2020-08-03 21:40:36 -04:00
parent fa43ce3b9e
commit de5ee7b7aa
3 changed files with 8 additions and 9 deletions

View file

@ -1,5 +1,5 @@
# PATHS #
set fish_user_paths /usr/lib/ccache/bin $D/Installs/bin /sbin /bin /usr/sbin /usr/bin
set fish_user_paths ~/.local/bin $D/Installs/bin /usr/lib/ccache/bin /usr/bin /usr/sbin /sbin /bin
set fish_function_path $fish_function_path $D/Games/Minecraft/Game/functions
# PROGRAM SETTINGS #

View file

@ -1,8 +0,0 @@
# 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

7
.local/bin/clip Executable file
View file

@ -0,0 +1,7 @@
#!/bin/bash
if [ $# -eq 0 ]
then
cat - | xclip -i -sel clip
else
echo $@ | xclip -i -sel clip
fi