Skip to content

Instantly share code, notes, and snippets.

@zaneclaes
Created March 19, 2019 03:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zaneclaes/0274a31a0cfa938144eaea7be61cd380 to your computer and use it in GitHub Desktop.
Save zaneclaes/0274a31a0cfa938144eaea7be61cd380 to your computer and use it in GitHub Desktop.
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME="powerlevel9k/powerlevel9k"
ZSH_DISABLE_COMPFIX=false
POWERLEVEL9K_MODE='nerdfont-complete'
POWERLEVEL9K_STATUS_VERBOSE=false
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(os_icon dir)
POWERLEVEL9K_SHORTEN_STRATEGY='truncate_from_right'
POWERLEVEL9K_SHORTEN_DIR_LENGTH=10
# POWERLEVEL9K_CONTEXT_TEMPLATE="`hostname -f`"
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(time)
# Which plugins would you like to load?
plugins=(
git
sublime
history
colorize
zsh-history-substring-search
)
# bind UP and DOWN arrow keys
zmodload zsh/terminfo
bindkey "$terminfo[kcuu1]" history-substring-search-up
bindkey "$terminfo[kcud1]" history-substring-search-down
source $ZSH/oh-my-zsh.sh
# User configuration
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
#
# ZPLUG
#
if [[ ! -f ~/.zplug/init.zsh ]]; then
echo "Installing zplug..."
curl -sL --proto-redir -all,https https://raw.githubusercontent.com/zplug/installer/master/installer.zsh | zsh
fi
source ~/.zplug/init.zsh
zplug "changyuheng/fz", defer:1
zplug "rupa/z", use:z.sh
zplug "lib/completion", from:oh-my-zsh
zplug "plugins/colored-man-pages", from:oh-my-zsh
zplug "zsh-users/zsh-history-substring-search"
zplug "zsh-users/zsh-autosuggestions"
zplug "zsh-users/zsh-syntax-highlighting"
# Install plugins if there are plugins that have not been installed
if ! zplug check --verbose; then
printf "Install? [y/N]: "
if read -q; then
echo; zplug install
fi
fi
zplug load
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment