Skip to content

Instantly share code, notes, and snippets.

@krast
Created July 24, 2020 02:50
Show Gist options
  • Save krast/e8aec63cf9fe7cb87556f12daa1546c5 to your computer and use it in GitHub Desktop.
Save krast/e8aec63cf9fe7cb87556f12daa1546c5 to your computer and use it in GitHub Desktop.
zplug config and install
brew install zplug
vi ~/.zshrc
source ~/.zshrc
# Define the env var ZPLUG_HOME
export ZPLUG_HOME=/usr/local/opt/zplug
# Loads zplug
source $ZPLUG_HOME/init.zsh
# zstyle
zstyle ':completion:*:descriptions' format '[%d]'
# Clear packages
# zplug clear
# History config
HISTSIZE=10000
SAVEHIST=10000
HISTFILE=~/.zsh_history
HIST_STAMPS="yyyy-mm-dd"
# zplug plugins
zplug "zsh-users/zsh-completions"
zplug "zsh-users/zsh-history-substring-search"
zplug "zsh-users/zsh-autosuggestions"
zplug "zsh-users/zsh-syntax-highlighting"
zplug "zsh-users/zaw"
zplug "junegunn/fzf-bin", \
from:gh-r, \
as:command, \
rename-to:fzf, \
use:"*darwin*amd64*"
zplug "junegunn/fzf", use:"shell/*.zsh", defer:2
zplug "chrissicool/zsh-256color"
# ipip
zplug "sukkaw/zsh-ipip"
zplug "supercrabtree/k"
zplug "gmatheu/shell-plugins", use:"explain-shell/*.zsh", defer:2
zplug "Aloxaf/fzf-tab"
zplug "RobertAudi/tsm"
zplug "peterhurford/up.zsh"
# from oh-my-zsh
zplug "lib/spectrum", from:oh-my-zsh
zplug "lib/history", from:oh-my-zsh
zplug "lib/completion", from:oh-my-zsh
zplug "lib/{git,key-bindings,grep,misc,compfix,correction}", from:oh-my-zsh
zplug "plugins/git", from:oh-my-zsh
zplug "plugins/history", from:oh-my-zsh
zplug "plugins/z", from:oh-my-zsh
zplug "plugins/screen", from:oh-my-zsh
# themes
zplug "krast/211e6b4e97c72babe9750ec949db35f5", \
from:gist, \
as:theme, \
use:gnerv-for-mac.theme
# Install packages that have not been installed yet
if ! zplug check --verbose; then
printf "Install? [y/N]: "
if read -q; then
echo; zplug install
else
echo
fi
fi
zplug load
# krast config
# ------------
export CLICOLOR=1
# cli imporved
# ------------
alias vi="vim"
alias ping='prettyping --nolegend'
alias cat="bat"
# golang
# ------
export GO111MODULE=on
export GO=/usr/local/Cellar/go/1.13.5
export GOROOT=$GO/libexec
export GOPATH=/Users/krast/workspace/golang
export GOBIN=$GOPATH/bin
export GOPROXY="https://goproxy.io,direct"
export PATH=$PATH:$GOBIN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment