Skip to content

Instantly share code, notes, and snippets.

@mingyuchoo
Last active September 1, 2022 20:12
Show Gist options
  • Save mingyuchoo/645d85904d7e0221fa81204d4cd5bf9c to your computer and use it in GitHub Desktop.
Save mingyuchoo/645d85904d7e0221fa81204d4cd5bf9c to your computer and use it in GitHub Desktop.
.zshrc
export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME_RANDOM_CANDIDATES=("af-magic" "afowler")
ZSH_THEME="random"
CASE_SENSITIVE="true"
HYPHEN_INSENSITIVE="true"
zstyle ':omz:update' mode disabled # disable automatic updates
zstyle ':omz:update' mode auto # update automatically without asking
zstyle ':omz:update' mode reminder # just remind me to update when it's time
zstyle ':omz:update' frequency 13
DISABLE_AUTO_TITLE="true"
DISABLE_LS_COLORS="true"
DISABLE_MAGIC_FUNCTIONS="true"
DISABLE_UNTRACKED_FILES_DIRTY="true"
ENABLE_CORRECTION="true"
COMPLETION_WAITING_DOTS="true"
HIST_STAMPS="mm/dd/yyyy"
# ZSH_CUSTOM=/path/to/new-custom-folder
plugins=(git)
source $ZSH/oh-my-zsh.sh
#----
export CLICOLOR=1
export LSCOLORS=GxFxCxDxBxegedabagaced
alias ls='ls --color=auto'
alias ll='ls -l'
alias la='ls -la'
alias rm='rm -i'
alias mv='mv -i'
alias emacsd='emacs --daemon'
alias emacsc='emacsclient -nw'
export LANG=en_US.UTF-8
export ARCHFLAGS="-arch x86_64"
export EDITOR="vim"
export MANPATH="/usr/local/man:$MANPATH"
JAVA_NAME="corretto-11.0.15"
export JAVA_HOME="$HOME/Library/Java/JavaVirtualMachines/$JDK_NAME/Contents/Home"
PATH="$PATH:/usr/libexec"
[ -d "$HOME/bin" ] && PATH="$HOME/bin:$PATH"
[ -d "$HOME/.local/bin" ] && PATH="$HOME/.local/bin:$HOME/.emacs.d/bin:$PATH"
export PATH="$HOME/bin:$HOME/.emacs.d/bin:$JAVA_HOME/bin:$PATH"
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
[ -f ~/.cargo/env ] && source $HOME/.cargo/env
[ -f ~/.ghcup/env ] && source $HOME/.ghcup/env
[ -f ~/tools/venv/bin/activate ] && source $HOME/tools/venv/bin/activate
eval $(minikube docker-env)
@mingyuchoo
Copy link
Author

How to install Oh My Zsh

sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment