Update zshrc to work on laptop
This commit is contained in:
parent
dc62094202
commit
48bf5140ac
14
.zshrc
14
.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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user