1
0

Switch to fish shell

This commit is contained in:
2024-12-14 00:15:47 +01:00
parent d0db80b911
commit 2314780ed9
16 changed files with 275 additions and 296 deletions

View File

@@ -0,0 +1,20 @@
function clip
set -g stdin
if not tty -s >/dev/null
read stdin
end
set stdin $(string trim -- $stdin)
set -l argv $(string trim -- $argv)
if test -n "$argv"
echo "$argv" | xclip -selection clipboard
return 0
end
if test -n "$stdin"
echo "$stdin" | xclip -selection clipboard
return 0
end
xclip -selection clipboard -o
end