summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Strapp <matt@mattstrapp.net>2022-10-20 10:28:56 -0500
committerMatt Strapp <matt@mattstrapp.net>2022-10-20 10:28:56 -0500
commite059c0f390c65b00f99926bdb2390f4d58b2a5f4 (patch)
tree236996535ca4fd6f522df4582220bba3c678502e
parentadd darwin (diff)
downloaddotfiles-e059c0f390c65b00f99926bdb2390f4d58b2a5f4.tar
dotfiles-e059c0f390c65b00f99926bdb2390f4d58b2a5f4.tar.gz
dotfiles-e059c0f390c65b00f99926bdb2390f4d58b2a5f4.tar.bz2
dotfiles-e059c0f390c65b00f99926bdb2390f4d58b2a5f4.tar.lz
dotfiles-e059c0f390c65b00f99926bdb2390f4d58b2a5f4.tar.xz
dotfiles-e059c0f390c65b00f99926bdb2390f4d58b2a5f4.tar.zst
dotfiles-e059c0f390c65b00f99926bdb2390f4d58b2a5f4.zip
mac
Signed-off-by: Matt Strapp <matt@mattstrapp.net>
Diffstat (limited to '')
-rw-r--r--zsh/.config/zsh/.zshrc23
1 files changed, 15 insertions, 8 deletions
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