Update ZSH configurations
This commit is contained in:
12
zsh/.zshrc
12
zsh/.zshrc
@@ -149,5 +149,17 @@ fpath=(~/.zsh $fpath)
|
||||
autoload run-help
|
||||
autoload -Uz compinit && compinit -u
|
||||
|
||||
case $(uname -s) in
|
||||
"Darwin")
|
||||
export ZSH_HIGHLIGHT_DIR=/opt/homebrew/share/zsh-syntax-highlighting
|
||||
export ZSH_HIGHLIGHT_HIGHLIGHTERS_DIR=/opt/homebrew/share/zsh-syntax-highlighting/highlighters
|
||||
;;
|
||||
"Linux")
|
||||
export ZSH_HIGHLIGHT_DIR=/usr/share/zsh-syntax-highlighting
|
||||
export ZSH_HIGHLIGHT_HIGHLIGHTERS_DIR=/usr/share/zsh-syntax-highlighting/highlighters
|
||||
export ZSH_AUTOSUGGESTIONS_DIR=/usr/share/zsh-autosuggestions
|
||||
;;
|
||||
esac
|
||||
|
||||
source "$ZSH_HIGHLIGHT_DIR/zsh-syntax-highlighting.zsh"
|
||||
source "$ZSH_AUTOSUGGESTIONS_DIR/zsh-autosuggestions.zsh"
|
||||
|
||||
Reference in New Issue
Block a user