My .zshrc file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# init homebrew | |
if [[ "$(uname)" == "Linux" ]]; then | |
export HOMEBREW_PREFIX="/home/linuxbrew/.linuxbrew" | |
elif [[ "$(uname -m)" == "arm64" ]]; then | |
export HOMEBREW_PREFIX="/opt/homebrew" | |
else | |
export HOMEBREW_PREFIX="/usr/local" | |
fi | |
eval "$($HOMEBREW_PREFIX/bin/brew shellenv)" | |
# init zsh | |
source $HOMEBREW_PREFIX/share/antigen/antigen.zsh | |
antigen use oh-my-zsh | |
antigen bundle git | |
antigen bundle zoxide | |
antigen bundle direnv | |
antigen bundle urltools | |
antigen bundle encode64 | |
antigen bundle command-not-found | |
antigen bundle zsh-users/zsh-completions | |
antigen bundle zsh-users/zsh-autosuggestions | |
antigen bundle zsh-users/zsh-syntax-highlighting | |
antigen bundle dominik-schwabe/zsh-fnm | |
antigen theme sorcererxw/banana-zsh-theme | |
antigen apply | |
# init golang | |
export PATH=$PATH:$(go env GOPATH)/bin | |
export GOPRIVATE="github.com/sorcererxw/*" | |
[[ -s ~/.gvm/scripts/gvm ]] && source ~/.gvm/scripts/gvm | |
# init pnpm | |
export PNPM_HOME=$HOME/Library/pnpm | |
export PATH=$PATH:$PNPM_HOME | |
# devbox | |
[[ -s /opt/tiger/ss_bin ]] && export PATH=$PATH:/opt/tiger/ss_bin | |
# command alias | |
alias ls=exa | |
alias vi=nvim | |
alias vim=nvim | |
alias ack=rg | |
alias cat="bat --theme Dracula" | |
alias cloc=tokei | |
alias gmo='go list -u -m -json all | go-mod-outdated' | |
alias gmod='go list -u -m -json all | go-mod-outdated -direct' | |
alias gmodu='go list -u -m -json all | go-mod-outdated -direct -update' | |
alias gmou='go list -u -m -json all | go-mod-outdated -update' | |
alias help=tldr | |
alias k=kubectl | |
alias lg=lazygit | |
alias rm=rip | |
alias dontsleep="caffeinate -s" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment