From e059c0f390c65b00f99926bdb2390f4d58b2a5f4 Mon Sep 17 00:00:00 2001 From: Matt Strapp Date: Thu, 20 Oct 2022 10:28:56 -0500 Subject: mac Signed-off-by: Matt Strapp --- zsh/.config/zsh/.zshrc | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) (limited to 'zsh') diff --git a/zsh/.config/zsh/.zshrc b/zsh/.config/zsh/.zshrc index dbe473c..2ebb50d 100644 --- a/zsh/.config/zsh/.zshrc +++ b/zsh/.config/zsh/.zshrc @@ -10,7 +10,21 @@ eval "$(lesspipe.sh)" # Luke's config for the Zoomer Shell -[ -f /usr/share/zsh-theme-powerlevel10k/powerlevel10k.zsh-theme ] && source /usr/share/zsh-theme-powerlevel10k/powerlevel10k.zsh-theme || source ${XDG_DATA_HOME:-$HOME/.local/share}/powerlevel10k/powerlevel10k.zsh-theme +if [ -f /etc/os-release ] +then + . /etc/os-release +else + ID=`uname -s` +fi +case "$ID" in + Darwin ) + source /usr/local/opt/powerlevel10k/powerlevel10k.zsh-theme + ;; + * ) + [ -f /usr/share/zsh-theme-powerlevel10k/powerlevel10k.zsh-theme ] && source /usr/share/zsh-theme-powerlevel10k/powerlevel10k.zsh-theme || source ${XDG_DATA_HOME:-$HOME/.local/share}/powerlevel10k/powerlevel10k.zsh-theme + ;; +esac + # Enable colors and change prompt: autoload -U colors && colors # Load colors @@ -54,13 +68,6 @@ _dotnet_zsh_complete() compctl -K _dotnet_zsh_complete dotnet -if [ -f /etc/os-release ] -then - . /etc/os-release -else - ID=`uname -s` -fi - case "$ID" in debian | ubuntu ) source /usr/share/zsh-autosuggestions/zsh-autosuggestions.zsh -- cgit v1.2.3