From e35030cde08eeab292741dc06a65391cbf6cf7dc Mon Sep 17 00:00:00 2001 From: Matt Strapp Date: Thu, 20 Oct 2022 10:09:14 -0500 Subject: add darwin Signed-off-by: Matt Strapp --- zsh/.config/zsh/.zshrc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/zsh/.config/zsh/.zshrc b/zsh/.config/zsh/.zshrc index d35ccd3..dbe473c 100644 --- a/zsh/.config/zsh/.zshrc +++ b/zsh/.config/zsh/.zshrc @@ -39,7 +39,7 @@ zmodload zsh/complist compinit -d ~/.cache/zsh/zcompdump-$ZSH_VERSION _comp_options+=(globdots) # Include hidden files. -# To customize prompt, run `p10k configure` or edit ~/.config/zsh/.p10k.zsh. +# To customize prompt, run `p10k configure` or edit ~/.config/zsh/. p10k.zsh. [[ ! -f ~/.config/zsh/.p10k.zsh ]] || source ~/.config/zsh/.p10k.zsh [[ ! -f ~/.config/zsh/keybindings.zsh ]] || source ~/.config/zsh/keybindings.zsh @@ -56,9 +56,9 @@ compctl -K _dotnet_zsh_complete dotnet if [ -f /etc/os-release ] then - . /etc/os-release + . /etc/os-release else - echo "/etc/os-release not found." + ID=`uname -s` fi case "$ID" in @@ -70,6 +70,10 @@ case "$ID" in source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.plugin.zsh source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.plugin.zsh ;; + Darwin ) + source /usr/local/share/zsh-autosuggestions/zsh-autosuggestions.zsh + source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh + ;; * ) echo "no highlight for you" ;; -- cgit v1.2.3