1
0

chore: standardize fish config (+ sync into)

This commit is contained in:
2025-12-19 16:06:43 +01:00
parent 5439235834
commit f1b828c7fe
3 changed files with 12 additions and 27 deletions

View File

@@ -1,26 +1,19 @@
function clip
if not command -q xclip
echoerr "clip: 'xclip' is not available on this system"
if not command -q xclip
echoerr "clip: xclip is not available on this system"
return 1
end
if not tty -s
set -l stdin
read stdin -z
read -zl stdin
echo $stdin | xclip -selection clipboard
return $status
end
if set -ql stdin
echo "$stdin" | xclip -selection clipboard
echo "copied into clipboard (stdin)"
return 0
end
if [ -n "$(string trim -- $argv)" ]
echo "$argv" | xclip -selection clipboard
echo "copied into clipboard"
return 0
if string length -qV -- (string trim -- $argv)
echo $argv | xclip -selection clipboard
return $status
end
xclip -selection clipboard -o
end