From 48bf5140ac6d2c0d09ec7888cdf97530261a4038 Mon Sep 17 00:00:00 2001 From: pfych Date: Mon, 19 Aug 2024 08:36:51 +1000 Subject: [PATCH] Update zshrc to work on laptop --- .zshrc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.zshrc b/.zshrc index f70d6e4..4659e23 100644 --- a/.zshrc +++ b/.zshrc @@ -1,16 +1,16 @@ # Path if [[ $(uname) == "Darwin" ]]; then + if [[ $(uname -m) == 'arm64' ]]; then + # Homebrew has a different location on M series devices + eval "$(/opt/homebrew/bin/brew shellenv)" + fi + export PATH="/usr/local/opt/grep/libexec/gnubin:$PATH:${HOME}/.local/bin:/usr/local/sbin:${HOME}/.local/share/gem/ruby/2.0.0/bin:/usr/local/bin" export ANDROID_SDK_ROOT=/Users/$USER/Library/Android/sdk source $(brew --prefix)/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh alias date=gdate; alias twtxt="AWS_PROFILE=personal twtxt -c .config/twtxt/config" eval "$(rbenv init - zsh)" - - if [[ $(uname -m) == 'arm64' ]]; then - # Homebrew has a different location on M series devices - eval "$(/opt/homebrew/bin/brew shellenv)" - fi else export PATH="${PATH}:${HOME}/.local/bin:/usr/local/sbin:${HOME}/.local/share/gem/ruby/2.0.0/bin:/usr/local/bin" source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.plugin.zsh @@ -22,9 +22,9 @@ export XDG_CONFIG_HOME=$CONFIGDIR export EDITOR=nvim # oh-my-zsh -export ZSH_DIR="$CONFIGDIR/oh-my-zsh" +export ZSH_DIR="$CONFIGDIR/ohmyzsh" export ZSH_CUSTOM="$ZSH_DIR/custom" -export ZSH="$CONFIGDIR/oh-my-zsh" +export ZSH="$CONFIGDIR/ohmyzsh" plugins=(git-prompt git) source $ZSH/oh-my-zsh.sh