1
0

fix issues with macos

This commit is contained in:
2025-02-13 22:37:57 +01:00
parent c0df575647
commit 35d046d7d8
2 changed files with 21 additions and 2 deletions

View File

@@ -19,4 +19,15 @@ export SSH_ENV="$HOME/.ssh/agent-environment"
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"

View File

@@ -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.
# install zsh-syntax-highlighting
source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
case "$(uname -s)" in
Linux* ) {
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;5D" backward-word
@@ -54,6 +62,6 @@ function set_win_title(){
}
starship_precmd_user_func="set_win_title"
eval "$(starship init zsh)"
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"