diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-10-31 14:31:32 +0100 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-10-31 14:31:32 +0100 |
commit | a98ae6bd5a1c7e2d278c5df2b927c0a5427141d0 (patch) | |
tree | c14a0e2602ea648a5b76948b17af727846bf1428 /config/essentials/zsh | |
parent | ff3a8bb2d62f5a7e1759eb3d9e0834f4396e833d (diff) |
turn aliases into scripts
This allows for better integration, and makes it possible to call these
from other programs, such as window managers, ...
Diffstat (limited to 'config/essentials/zsh')
-rw-r--r-- | config/essentials/zsh/aliases.sh | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/config/essentials/zsh/aliases.sh b/config/essentials/zsh/aliases.sh index e9c7e2f..575502c 100644 --- a/config/essentials/zsh/aliases.sh +++ b/config/essentials/zsh/aliases.sh @@ -17,18 +17,13 @@ then alias calc='bc <<<' - if [ "$WAYLAND_DISPLAY" ] - then - alias -g clipp='wl-copy -n' - alias -g clipo='wl-paste -n' - else + if [ -z "$WAYLAND_DISPLAY" ] + then if which devour > /dev/null 2>&1 then alias mpv='devour mpv' alias zathura='devour zathura' fi - alias -g clipp='xclip -selection clipboard -r' - alias -g clipo='xclip -o -selection clipboard -r' fi alias clipic='clipo > /tmp/pic.png' |