Skip to content

Instantly share code, notes, and snippets.

@zz-jason
Last active June 23, 2022 14:47
Show Gist options
  • Save zz-jason/82c463e0e271526621a9ce6558d96549 to your computer and use it in GitHub Desktop.
Save zz-jason/82c463e0e271526621a9ce6558d96549 to your computer and use it in GitHub Desktop.
################################################################################
# brew configuration
################################################################################
eval "$(/opt/homebrew/bin/brew shellenv)"
export PATH=/opt/homebrew/opt/libtool/libexec/gnubin:$PATH
################################################################################
# fzf configuration
################################################################################
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
################################################################################
# zsh configuration
################################################################################
export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME="spaceship"
SPACESHIP_PROMPT_ORDER=(
time # Time stamps section
user # Username section
host # Hostname section
dir # Current directory section
git # Git section (git_branch + git_status)
hg # Mercurial section (hg_branch + hg_status)
package # Package version
node # Node.js section
ruby # Ruby section
elixir # Elixir section
xcode # Xcode section
swift # Swift section
golang # Go section
php # PHP section
rust # Rust section
haskell # Haskell Stack section
julia # Julia section
docker # Docker section
aws # Amazon Web Services section
gcloud # Google Cloud Platform section
venv # virtualenv section
conda # conda virtualenv section
pyenv # Pyenv section
dotnet # .NET section
ember # Ember.js section
kubectl # Kubectl context section
terraform # Terraform workspace section
exec_time # Execution time
line_sep # Line break
battery # Battery level and status
vi_mode # Vi-mode indicator
jobs # Background jobs indicator
exit_code # Exit code section
char # Prompt character
)
SPACESHIP_USER_SHOW='always'
SPACESHIP_USER_PREFIX=''
SPACESHIP_USER_SUFFIX=''
SPACESHIP_USER_COLOR='#b58900'
SPACESHIP_HOST_SHOW='always'
SPACESHIP_HOST_SHOW_FULL='false'
SPACESHIP_HOST_PREFIX='@'
SPACESHIP_HOST_SUFFIX=''
SPACESHIP_HOST_COLOR='#268bd2'
SPACESHIP_DIR_PREFIX=':'
SPACESHIP_DIR_SUFFIX=''
SPACESHIP_DIR_COLOR='#2aa198'
SPACESHIP_GIT_SHOW='true'
SPACESHIP_GIT_PREFIX=' ('
SPACESHIP_GIT_SUFFIX=')'
SPACESHIP_GIT_SYMBOL='git:'
SPACESHIP_PACKAGE_SHOW='false'
SPACESHIP_GOLANG_SHOW='false'
SPACESHIP_RUST_SHOW='false'
SPACESHIP_DOCKER_SHOW='false'
SPACESHIP_EXEC_TIME_PREFIX=' took '
SPACESHIP_EXEC_TIME_COLOR='#b58900'
SPACESHIP_CHAR_COLOR_SUCCESS='#859900' # Green
SPACESHIP_CHAR_COLOR_FAILURE='#dc322f' # Red
SPACESHIP_CHAR_COLOR_SECONDARY='#b58900' # Yellow
DISABLE_AUTO_TITLE="true"
COMPLETION_WAITING_DOTS="true"
DISABLE_UNTRACKED_FILES_DIRTY="true"
plugins=(git zsh-syntax-highlighting zsh-completions fzf)
source $ZSH/oh-my-zsh.sh
export LANG=en_US.UTF-8
# for zsh-syntax-highlighting
ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets pattern cursor)
# for zsh-completions
autoload -U compinit && compinit
################################################################################
# user configuration
################################################################################
# LS colors, made with http://geoff.greer.fm/lscolors/
export LSCOLORS="exfxcxdxbxegedabagacad"
export LS_COLORS='di=34;40:ln=35;40:so=32;40:pi=33;40:ex=31;40:bd=34;46:cd=34;43:su=0;41:sg=0;46:tw=0;42:ow=0;43:'
export GREP_COLOR='1;33'
# alias
alias ssh='ssh -o ServerAliveInterval=30'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment