Skip to content

Commit

Permalink
[darwin/zsh] Install & enable zsh-syntax-highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
progrhyme committed May 23, 2020
1 parent 97074a6 commit 71cf5a4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions envs/darwin/.Brewfile
Expand Up @@ -21,3 +21,4 @@ brew "fish"
tap "superbrothers/zsh-kubectl-prompt"
brew "zsh-kubectl-prompt"
brew "colordiff"
brew "zsh-syntax-highlighting"
7 changes: 7 additions & 0 deletions envs/darwin/.zshrc
Expand Up @@ -174,6 +174,13 @@ precmd () {
# /PROMPT settings (3)
#===========================================================

# zsh-syntax-highlighting
_highlighter="/usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"
if [[ -r "${_highlighter}" ]]; then
source $_highlighter
fi
unset _highlighter

############################################################
# scripts to exec on login
update-local-repos
Expand Down

0 comments on commit 71cf5a4

Please sign in to comment.