Update ZSH configurations
This commit is contained in:
5
profile/.profile.d/rust.sh
Normal file
5
profile/.profile.d/rust.sh
Normal file
@@ -0,0 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
if [ -e "$HOME/.cargo" ]; then
|
||||
source "$HOME/.cargo/env"
|
||||
fi
|
||||
@@ -1,13 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
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
|
||||
@@ -9,3 +9,7 @@ if command -v oh-my-posh > /dev/null 2>&1; then
|
||||
# Initialize Oh My Posh
|
||||
eval "$(oh-my-posh init zsh --config "$(brew --prefix oh-my-posh)/themes/peru.omp.json")"
|
||||
fi
|
||||
|
||||
export VIRTUAL_ENV_DISABLE_PROMPT=1
|
||||
export EDITOR=nvim
|
||||
export HOMEBREW_NO_ENV_HINTS=1
|
||||
|
||||
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