feat: addet copy command

This commit is contained in:
pika 2025-03-17 18:28:49 +01:00
parent 175a8e7fda
commit b6464e1707

13
.zshrc
View file

@ -175,6 +175,19 @@ __alias__() {
alias grep="grep --color=always"
fi
# ─< define copy command >────────────────────────────────────────────────────────────────
if command_exists wl-copy; then
copy() {
command cat "$1" | wl-copy
}
elif command_exists xclip; then
copy() {
command cat "$1" | xclip -selection clipboard
}
else
echo_warning "No clipboard utility found. Please install wl-copy or xclip."
fi
# ─< linutil >────────────────────────────────────────────────────────────────────────────
alias linutil="curl -fsSL https://christitus.com/linux | sh"
alias "linutil-dev"="curl -fsSL https://christitus.com/linuxdev | sh"