dotfiles/zsh/zsh_aliases

11 lines
266 B
Plaintext

# Clipboard aliases
# y - yank text to clipboard
# p - put text from clipboard
if q command -v wl-copy; then
alias y='wl-copy'
alias p='wl-paste'
elif q command -v xclip; then
alias y='xclip -selection -clipboard'
alias p='xclip -selection -clipboard -o'
fi