Skip to content

Instantly share code, notes, and snippets.

@thynson
Last active October 10, 2017 10:52
Show Gist options
  • Save thynson/304fefc1d13c5b208714100b9a565636 to your computer and use it in GitHub Desktop.
Save thynson/304fefc1d13c5b208714100b9a565636 to your computer and use it in GitHub Desktop.
zshrc based on ohmyzsh
# Path to your oh-my-zsh installation.
export ZSH=/Users/lanxingcan/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="candy"
# Uncomment the following line to use case-sensitive completion.
CASE_SENSITIVE="true"
# Uncomment the following line to use hyphen-insensitive completion. Case
# sensitive completion must be off. _ and - will be interchangeable.
HYPHEN_INSENSITIVE="true"
# Uncomment the following line to change how often to auto-update (in days).
export UPDATE_ZSH_DAYS=365
# Uncomment the following line if you want to change the command execution time
# stamp shown in the history command output.
# The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
HIST_STAMPS="yyyy-mm-dd"
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(git sudo adb docker)
source $ZSH/oh-my-zsh.sh
if [[ -z "$__ZSH_DEPTH_GUARD__" ]]; then
if [[ -z "$__ZSH_DEPTH__" ]]; then
export __ZSH_DEPTH__=0
else
((__ZSH_DEPTH__++))
fi
fi
PROMPT='
%{$FG[246]%}[%{$FG[034]%}$__ZSH_DEPTH__%{$FG[246]%}|%{$FG[033]%}%n%{$FG[246]%}@%{$FG[129]%}%m%{$FG[246]%}:%{$FG[208]%}%~%{$FG[057]%}%{$FG[246]%}] %(?..%{$FG[124]%}[exit: %?] %{$reset_color%})$(git_prompt_info)
%{$FG[246]%}%#%{$reset_color%} '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment