From ee4e8e72175518a10356017966c620765b1cd00f Mon Sep 17 00:00:00 2001 From: Martin Larsson Date: Thu, 15 Aug 2024 13:23:03 +0200 Subject: [PATCH] Make sure wlc/wlp works on mac os --- home/.zshrc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/home/.zshrc b/home/.zshrc index 7d6e0b9..bc6c8b9 100644 --- a/home/.zshrc +++ b/home/.zshrc @@ -120,7 +120,10 @@ alias neofetch="fastfetch" alias cat="bat" alias fzf='fzf --preview "bat --color=always --style=numbers --line-range=:500 {}"' # wl-copy and wl-paste doesn't exist on mac, and mac has pbcopy and pbpaste -if [[ "$(uname)" != "Darwin" ]]; then +if [[ "$(uname)" == "Darwin" ]]; then + alias wlc="pbcopy" + alias wlp="pbpaste" +else alias wlc="wl-copy" alias wlp="wl-paste" else