diff --git a/.zshrc b/.zshrc index 70a2e69..604617b 100644 --- a/.zshrc +++ b/.zshrc @@ -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"