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:
parent
fa43ce3b9e
commit
de5ee7b7aa
|
@ -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 #
|
||||
|
|
|
@ -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
7
.local/bin/clip
Executable file
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
if [ $# -eq 0 ]
|
||||
then
|
||||
cat - | xclip -i -sel clip
|
||||
else
|
||||
echo $@ | xclip -i -sel clip
|
||||
fi
|
Loading…
Reference in a new issue