summaryrefslogtreecommitdiffstats
path: root/zsh
diff options
context:
space:
mode:
authorMatt Strapp <matt@mattstrapp.net>2022-10-20 10:09:14 -0500
committerMatt Strapp <matt@mattstrapp.net>2022-10-20 10:09:14 -0500
commite35030cde08eeab292741dc06a65391cbf6cf7dc (patch)
treeab76ac7e84e631e84eaed05cf6089f684d603759 /zsh
parentmake dots dynamic (diff)
downloaddotfiles-e35030cde08eeab292741dc06a65391cbf6cf7dc.tar
dotfiles-e35030cde08eeab292741dc06a65391cbf6cf7dc.tar.gz
dotfiles-e35030cde08eeab292741dc06a65391cbf6cf7dc.tar.bz2
dotfiles-e35030cde08eeab292741dc06a65391cbf6cf7dc.tar.lz
dotfiles-e35030cde08eeab292741dc06a65391cbf6cf7dc.tar.xz
dotfiles-e35030cde08eeab292741dc06a65391cbf6cf7dc.tar.zst
dotfiles-e35030cde08eeab292741dc06a65391cbf6cf7dc.zip
add darwin
Signed-off-by: Matt Strapp <matt@mattstrapp.net>
Diffstat (limited to 'zsh')
-rw-r--r--zsh/.config/zsh/.zshrc10
1 files 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"
;;