Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
144 lines (108 sloc) 3.96 KB
source ~/.paths
source $HOME/.exports
source $HOME/.aliases
source $HOME/.private
source $HOME/.files/secrets
source ~/.zplug/init.zsh
# [[ $(uname) = "Darwin" ]] && source `brew --prefix`/etc/profile.d/z.sh
# zplug "lodestone/z", as:plugin
zplug "mafredri/zsh-async"
zplug "hchbaw/auto-fu.zsh", as:plugin
zplug "zsh-users/zsh-syntax-highlighting"
zplug "sindresorhus/pure", as:plugin
zplug "zsh-users/zsh-autosuggestions", as:plugin
zplug "supercrabtree/k"
zplug "zsh-users/zsh-completions", as:plugin
# Initialize z
# . ~/.bin/z.sh
# 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 --verbose
zplug load
# source /usr/local/share/chruby/chruby.sh
# source /usr/local/share/chruby/auto.sh
eval "$(rbenv init -)"
bindkey -e
bindkey "^D" afu+orf-exit-deletechar-list
bindkey ";5D" backward-word
bindkey ";5C" forward-wordbindkey
bindkey "^[[1;3C" forward-word
bindkey "^[[1;3D" backward-word
bindkey "[C" forward-word
bindkey "[D" backward-word
export HISTSIZE=100001
export SAVEHIST=100001
export HISTFILE=~/.history
# 10ms for key sequences
export KEYTIMEOUT=1
# export EDITOR=atom-beta
setopt EXTENDED_GLOB
# Case insensitive globbing
setopt NO_CASE_GLOB
setopt HIST_IGNORE_ALL_DUPS
setopt HIST_IGNORE_SPACE
setopt INC_APPEND_HISTORY
setopt EXTENDED_HISTORY
setopt AUTOCD
setopt always_to_end
setopt auto_menu
setopt complete_in_word
setopt share_history
# setopt CORRECTALL
zstyle ':completion:*:default' list-colors 'reply=("${PREFIX:+=(#bi)($PREFIX:t)(?)*==34=34}:${(s.:.)LS_COLORS}")'
zstyle ':completion::complete:*' use-cache 1
zstyle ':completion::complete:*' cache-path ~/.zcomplcache
# zstyle ':completion:*' menu select
# This line lets you type `rar`<TAB> and it will autoexpand `Library`. Very useful.
zstyle ':completion:*' matcher-list '' 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*'
zstyle ':completion:*' menu select
zstyle ':notify:*' error-icon "https://media3.giphy.com/media/10ECejNtM1GyRy/200_s.gif"
zstyle ':notify:*' error-title "Failure!"
zstyle ':notify:*' success-icon "https://s-media-cache-ak0.pinimg.com/564x/b5/5a/18/b55a1805f5650495a74202279036ecd2.jpg"
zstyle ':notify:*' success-title "Success my friend, #Success."
zstyle ':notify:*' command-complete-timeout 15
autoload -U compinit
compinit
autoload -U url-quote-magic
zle -N self-insert url-quote-magic
# chruby 2.4
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
# function rcp() { rsync -rahP --modify-window=1 "$@" }
# function rmv() { rsync -rahP --modify-window=1 --prune-empty-dirs --remove-sent-files "$@" }
# compdef _cp rcp rmv
# autoload -Uz promptinit && promptinit
# [[ $(uname) = "Linux" ]] && autoload -Uz promptinit && promptinit
# [[ $(uname) = "Linux" ]] && prompt adam2
# The next line updates PATH for the Google Cloud SDK.
# source '/Users/z/google-cloud-sdk/path.zsh.inc'
# The next line enables shell command completion for gcloud.
# source '/Users/z/google-cloud-sdk/completion.zsh.inc'
. `brew --prefix`/etc/profile.d/z.sh
export LDFLAGS=-L/usr/local/opt/openssl/lib
export CPPFLAGS=-I/usr/local/opt/openssl/include
export PKG_CONFIG_PATH=/usr/local/opt/openssl/lib/pkgconfig
# export RUBY_CONFIGURE_OPTS="--with-openssl-dir=`brew --prefix openssl` --with-readline-dir=`brew --prefix readline` --with-libyaml-dir=`brew --prefix libyaml`"
autoload -z edit-command-line
zle -N edit-command-line
bindkey "^X^E" edit-command-line
# Setting ag as the default source for fzf
export FZF_DEFAULT_COMMAND='rg --files --hidden --follow --glob "!.git/*"'
# To apply the command to CTRL-T as well
# export FZF_CTRL_T_COMMAND="rg --files *"
export PATH="$HOME/.yarn/bin:$PATH"
export PROMPT="%(?.%F{magenta}.%F{red})${PURE_PROMPT_SYMBOL:-↬} %f"
source /Users/z/.syntra/small
autoload -Uz promptinit
promptinit
# function pet-select() {
# BUFFER=$(pet search --query "$LBUFFER")
# CURSOR=$#BUFFER
# zle redisplay
# }
# zle -N pet-select
# bindkey '^s' pet-select