From 5fce150f44d82c7d1a7445af63431a5f18046202 Mon Sep 17 00:00:00 2001 From: aleidk Date: Tue, 29 Aug 2023 19:10:10 -0400 Subject: [PATCH] add mac config --- config/zsh/aliases/flatpak.zsh | 4 ++++ config/zsh/zprofile | 4 ++++ config/zsh/zshrc | 5 +++-- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/config/zsh/aliases/flatpak.zsh b/config/zsh/aliases/flatpak.zsh index 4899c12..bb161d4 100644 --- a/config/zsh/aliases/flatpak.zsh +++ b/config/zsh/aliases/flatpak.zsh @@ -1,3 +1,7 @@ +if [[ $OSTYPE -ne 'linux-gnu' ]]; then + return +fi + # Auto-generated aliases for Flatpak applications alias pikabackup='flatpak run org.gnome.World.PikaBackup' diff --git a/config/zsh/zprofile b/config/zsh/zprofile index 180e794..860284e 100755 --- a/config/zsh/zprofile +++ b/config/zsh/zprofile @@ -33,3 +33,7 @@ update_path "$PNPM_HOME" update_path "$HOME/.local/share/rtx/shims" . "$HOME/.cargo/env" + +if [[ $OSTYPE =~ 'darwin' ]]; then + eval "$(/opt/homebrew/bin/brew shellenv)" +fi diff --git a/config/zsh/zshrc b/config/zsh/zshrc index 32e6d39..7f325c0 100755 --- a/config/zsh/zshrc +++ b/config/zsh/zshrc @@ -51,14 +51,15 @@ ZSHZ_TILDE=1 plugins=( alias-finder - # archlinux bgnotify colored-man-pages + composer docker docker-compose fd fzf git + laravel safe-paste # don't run code when pasting systemd z @@ -66,8 +67,8 @@ plugins=( zsh-autopair zsh-autosuggestions zsh-completions - zsh-syntax-highlighting zsh-interactive-cd + zsh-syntax-highlighting ) # If not running interactively, don't do anything