Last active
July 23, 2020 04:01
-
-
Save khapota/388345be48b06942fcd507d8cddb40ee to your computer and use it in GitHub Desktop.
Zsh zplug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source ~/.zplug/init.zsh | |
## Prezto | |
zplug "modules/directory", from:prezto | |
zplug "modules/environment", from:prezto | |
zplug "modules/history", from:prezto | |
zplug "modules/completion", from:prezto | |
zplug "modules/spectrum", from:prezto | |
zplug "modules/git", from:prezto | |
zplug "modules/utility", from:prezto | |
zplug "modules/editor", from:prezto | |
zplug "modules/terminal", from:prezto | |
# zplug "modules/prompt", from:prezto | |
#zplug "plugins/pip", from:oh-my-zsh | |
# zplug "plugins/vi-mode", from:oh-my-zsh | |
#zplug "plugins/vundle", from:oh-my-zsh | |
zplug "plugins/systemadmin", from:oh-my-zsh | |
#zplug "plugins/sudo", from:oh-my-zsh | |
zplug "plugins/osx", from:oh-my-zsh | |
zplug "djui/alias-tips", defer:2 | |
# Auto suggestion | |
# | |
#zplug "zsh-users/zsh-autosuggestions" | |
#bindkey '^ ' autosuggest-accept | |
# | |
# Auto completion | |
zplug "zsh-users/zsh-completions" | |
# | |
## Powerline9kk | |
#zplug "bhilburn/powerlevel9k", use:powerlevel9k.zsh-theme | |
## pure theme | |
zplug mafredri/zsh-async, from:github | |
zplug sindresorhus/pure, use:pure.zsh, from:github, as:theme | |
#zplug "felixr/docker-zsh-completion", defer:2 | |
zplug "zsh-users/zsh-syntax-highlighting", defer:2 | |
# zplug "hchbaw/zce.zsh", defer:2 | |
zplug "b4b4r07/enhancd", \ | |
use:init.sh | |
#zplug 'zplug/zplug', hook-build:'zplug --self-manage' | |
#zstyle ':prezto:module:prompt' theme 'sorin' | |
#zstyle ':prezto:module:editor' key-bindings 'vi' | |
#zstyle ':prezto:*:*' color 'yes' | |
if ! zplug check; then | |
zplug install | |
fi | |
zplug load | |
export FZF_DEFAULT_COMMAND='ag --hidden --ignore .git -g ""' | |
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh | |
## bindkey for zce | |
# bindkey "^Xz" zce | |
[ -f $ENHANCD_ROOT/init.sh ] && source $ENHANCD_ROOT/init.sh | |
export PATH=$HOME/bin:$PATH | |
export PATH=$HOME/node_modules/hexo-cli/bin:$PATH | |
export PATH=$HOME/.zplug/bin:$PATH | |
source '/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/path.zsh.inc' | |
source '/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/completion.zsh.inc' | |
## Android SDK | |
export ANDROID_SDK_ROOT="$HOME/Library/Android/sdk" | |
export ANDROID_HOME="$HOME/Library/Android/sdk" | |
export PATH=$PATH:$ANDROID_HOME/emulator | |
export PATH=$PATH:$ANDROID_HOME/tools | |
export PATH=$PATH:$ANDROID_HOME/tools/bin | |
export PATH=$PATH:$ANDROID_HOME/platform-tools | |
export EDITOR=emacs | |
# bindkey -M viins 'jj' vi-cmd-mode | |
alias hexog='hexo g --config _config.yml,source/_data/next.yml' | |
#source $HOME/bin/virtualenvwrapper_lazy.sh | |
#if [ $commands[kubectl] ]; then | |
# source <(kubectl completion zsh) | |
#fi | |
#export THEOS=/Volumes/MacExt/theos | |
. $(brew --prefix asdf)/asdf.sh | |
if type brew &>/dev/null; then | |
FPATH=$(brew --prefix)/share/zsh/site-functions:$FPATH | |
autoload -Uz compinit | |
compinit | |
fi | |
#. /usr/local/opt/asdf/etc/bash_completion.d/asdf.bash | |
# fpath+=${ZDOTDIR:-~}/.zsh_functions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source ~/.zplug/init.zsh | |
## Prezto | |
zplug "modules/directory", from:prezto | |
zplug "modules/environment", from:prezto | |
zplug "modules/history", from:prezto | |
zplug "modules/completion", from:prezto | |
zplug "modules/spectrum", from:prezto | |
zplug "modules/git", from:prezto | |
zplug "modules/utility", from:prezto | |
zplug "modules/editor", from:prezto | |
zplug "modules/terminal", from:prezto | |
#zplug "modules/prompt", from:prezto | |
zplug "plugins/pip", from:oh-my-zsh | |
zplug "plugins/vi-mode", from:oh-my-zsh | |
zplug "plugins/vundle", from:oh-my-zsh | |
zplug "plugins/systemadmin", from:oh-my-zsh | |
zplug "plugins/sudo", from:oh-my-zsh | |
zplug "plugins/osx", from:oh-my-zsh | |
# | |
## Powerline9kk | |
#zplug "bhilburn/powerlevel9k", use:powerlevel9k.zsh-theme | |
## pure theme | |
zplug mafredri/zsh-async, from:github | |
zplug sindresorhus/pure, use:pure.zsh, from:github, as:theme | |
zplug "b4b4r07/httpstat", \ | |
as:command, \ | |
use:'(*).sh', \ | |
defer:2, \ | |
rename-to:'$1' | |
zplug "stedolan/jq", \ | |
from:gh-r, \ | |
as:command, \ | |
defer:2, \ | |
rename-to:jq | |
zplug "b4b4r07/emoji-cli", \ | |
defer:2, \ | |
on:"stedolan/jq" | |
#zplug "hakerdefo/cmus-lyrics", \ | |
#defer:2, \ | |
#as:command\ | |
zplug "felixr/docker-zsh-completion", defer:2 | |
zplug "zsh-users/zsh-syntax-highlighting", defer:2 | |
zplug "hchbaw/zce.zsh", defer:2 | |
zplug "b4b4r07/enhancd", \ | |
use:init.sh | |
zplug 'zplug/zplug', hook-build:'zplug --self-manage' | |
#zstyle ':prezto:module:prompt' theme 'sorin' | |
zstyle ':prezto:module:editor' key-bindings 'vi' | |
zstyle ':prezto:*:*' color 'yes' | |
if ! zplug check; then | |
zplug install | |
fi | |
zplug load | |
export FZF_DEFAULT_COMMAND='ag --hidden --ignore .git -g ""' | |
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh | |
## bindkey for zce | |
bindkey "^Xz" zce | |
[ -f $ENHANCD_ROOT/init.sh ] && source $ENHANCD_ROOT/init.sh | |
export LC_CTYPE=en_US.UTF-8 | |
export LC_ALL=en_US.UTF-8 | |
export PATH="/usr/local/opt/ruby/bin:$PATH" | |
export PATH="/usr/local/bin:$PATH" | |
export PATH="/usr/local/sbin:$PATH" | |
export PATH="$PATH:$HOME/bin" | |
export THEOS=~/theos | |
export EDITOR=vim | |
# The next line updates PATH for the Google Cloud SDK. | |
if [ -f '/Users/khanhpt/Src/google-cloud-sdk/path.zsh.inc' ]; then . '/Users/khanhpt/Src/google-cloud-sdk/path.zsh.inc'; fi | |
# The next line enables shell command completion for gcloud. | |
if [ -f '/Users/khanhpt/Src/google-cloud-sdk/completion.zsh.inc' ]; then . '/Users/khanhpt/Src/google-cloud-sdk/completion.zsh.inc'; fi | |
export PATH="/usr/local/opt/openjdk/bin:$PATH" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment