fix issues with macos
This commit is contained in:
11
zsh/.zshenv
11
zsh/.zshenv
@@ -19,4 +19,15 @@ export SSH_ENV="$HOME/.ssh/agent-environment"
|
|||||||
|
|
||||||
export PATH=~/.local/bin:$PATH
|
export PATH=~/.local/bin:$PATH
|
||||||
|
|
||||||
|
case "$(uname -s)" in
|
||||||
|
Linux* ) {
|
||||||
|
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
|
||||||
|
};;
|
||||||
|
Darwin* ) {
|
||||||
|
eval "$(/opt/homebrew/bin/brew shellenv)"
|
||||||
|
export PATH="/opt/homebrew/opt/make/libexec/gnubin:$PATH"
|
||||||
|
};;
|
||||||
|
* ) ;;
|
||||||
|
esac
|
||||||
|
|
||||||
. "$HOME/.cargo/env"
|
. "$HOME/.cargo/env"
|
||||||
|
|||||||
10
zsh/.zshrc
10
zsh/.zshrc
@@ -13,7 +13,15 @@ setopt PUSHD_IGNORE_DUPS # Do not store duplicates in the stack.
|
|||||||
setopt PUSHD_SILENT # Do not print the directory stack after pushd or popd.
|
setopt PUSHD_SILENT # Do not print the directory stack after pushd or popd.
|
||||||
|
|
||||||
# install zsh-syntax-highlighting
|
# install zsh-syntax-highlighting
|
||||||
|
case "$(uname -s)" in
|
||||||
|
Linux* ) {
|
||||||
source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
||||||
|
};;
|
||||||
|
Darwin* ) {
|
||||||
|
source $(brew --prefix)/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
||||||
|
};;
|
||||||
|
* ) ;;
|
||||||
|
esac
|
||||||
|
|
||||||
bindkey "^[[1;5C" forward-word
|
bindkey "^[[1;5C" forward-word
|
||||||
bindkey "^[[1;5D" backward-word
|
bindkey "^[[1;5D" backward-word
|
||||||
@@ -54,6 +62,6 @@ function set_win_title(){
|
|||||||
}
|
}
|
||||||
starship_precmd_user_func="set_win_title"
|
starship_precmd_user_func="set_win_title"
|
||||||
|
|
||||||
|
|
||||||
eval "$(starship init zsh)"
|
eval "$(starship init zsh)"
|
||||||
|
|
||||||
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
|
|
||||||
|
|||||||
Reference in New Issue
Block a user