Make clip alias work on wayland
This commit is contained in:
parent
11d6c98b03
commit
6d1873b6cd
8
init.zsh
8
init.zsh
@ -44,7 +44,13 @@ SAVEHIST=10000
|
||||
# Tools for graphical sessions
|
||||
export BROWSER=mullvad-browser
|
||||
export READER=zathura
|
||||
alias clip="xclip -selection clipboard"
|
||||
if [[ -v WAYLAND_DISPLAY ]]; then
|
||||
function clip {
|
||||
(( ${#} >= 1 )) && (cat "${@}" | wl-copy) || wl-copy
|
||||
}
|
||||
else
|
||||
alias clip="xclip -selection clipboard"
|
||||
fi
|
||||
|
||||
# I mess this up a lot
|
||||
alias cd..="cd .."
|
||||
|
Loading…
Reference in New Issue
Block a user