From 14aaeece77276e1463383776ff85d181980700d9 Mon Sep 17 00:00:00 2001 From: Martin Larsson Date: Thu, 23 May 2024 00:17:19 +0200 Subject: [PATCH] Exclude some aliases from mac which arent available on that platform --- home/.zshrc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/home/.zshrc b/home/.zshrc index 4dcf613..0cc8aa4 100644 --- a/home/.zshrc +++ b/home/.zshrc @@ -98,8 +98,12 @@ alias lgit="lazygit" alias neofetch="fastfetch" alias cat="bat" alias fzf='fzf --preview "bat --color=always --style=numbers --line-range=:500 {}"' -alias wlc="wl-copy" -alias wlp="wl-paste" + +# wl-copy and wl-paste doesn't exist on mac, and mac has pbcopy and pbpaste +if [[ "$(uname)" != "Darwin" ]]; then + alias wlc="wl-copy" + alias wlp="wl-paste" +fi # Shell integration eval "$(fzf --zsh)"