zsh #
zsh is a Unix shell.
My .zshrc configuration #
Below is my ~/.zshrc
file, included using org babel.
ZSH_DISABLE_COMPFIX="true"
# Path to your oh-my-zsh installation.
export ZSH="/Users/clinton/.oh-my-zsh"
ZSH_THEME="robbyrussell"
plugins=(git)
source $ZSH/oh-my-zsh.sh
eval "$(fnm env --use-on-cd)"
# User configuration
export PATH="/opt/homebrew/bin:/usr/local/bin:$PATH"
alias ibrew='arch -x86_64 /usr/local/bin/brew'
alias mbrew='arch -arm64e /opt/homebrew/bin/brew'
alias roam_build='/Users/clinton/.emacs.d/roam_build.sh'
alias wcorg='wc -w **/*.org | grep total'
alias wcmd='wc -w *.md | grep total'
alias mem='cd ~/roam && python3 memoirs_count.py && cd ~-'
alias subl='/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl'
eval "$(rbenv init -)" && export RUBY_CONFIGURE_OPTS="--with-openssl-dir=$(brew --prefix openssl@1.1)"
export GEM_HOME="$(ruby -e 'puts Gem.user_dir')"
export PATH="$PATH:$GEM_HOME/bin"
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
[ -f "/Users/clinton/.ghcup/env" ] && source "/Users/clinton/.ghcup/env" # ghcup-env
export PATH="$HOME/.emacs.d/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
export PATH="/opt/homebrew/opt/sqlite/bin:$PATH"
Links and resources #
- Starship, a nice shell prompt customisation package.