Created
February 16, 2017 14:52
-
-
Save pinpox/eb4145e0f758cab8a7781813b6f1d673 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# http://bit.do/zshconfig | |
# https://ptpb.pw/MCeR | |
# | |
# Prevents grep options deprecation message | |
alias grep="/usr/bin/grep --color=auto $GREP_OPTIONS" | |
unset GREP_OPTIONS | |
HISTFILE=~/.histfile | |
HISTSIZE=10000 | |
SAVEHIST=10000 | |
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(dir vcs ) | |
POWERLEVEL9K_SHORTEN_DIR_LENGTH=1 | |
POWERLEVEL9K_SHORTEN_DELIMITER="" | |
POWERLEVEL9K_SHORTEN_STRATEGY="truncate_middle" | |
if [[ $HOST != "binaryplease-laptop" ]]; then | |
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(custom_host dir vcs ) | |
POWERLEVEL9K_CUSTOM_HOST="echo $HOST" | |
fi | |
alias q="exit" | |
alias v="nvim" | |
alias vim="nvim" | |
alias "rubocop --version"="echo 0.29.1" | |
alias "git igpush"="git commit -m\"ignore\" && git push" | |
alias y="yaourt" | |
alias paste=" curl -F c=@- https://ptpb.pw/" | |
alias snvim="sudo -E nvim" | |
alias weather='curl -4 http://wttr.in/Koeln' | |
alias qr_gen="qrencode -t ansi -o-" | |
alias cats='highlight -O ansi' | |
bindkey "$terminfo[kcuu1]" history-substring-search-up | |
bindkey "$terminfo[kcud1]" history-substring-search-down | |
#autoload -U up-line-or-beginning-search | |
#autoload -U down-line-or-beginning-search | |
#zle -N up-line-or-beginning-search | |
#zle -N down-line-or-beginning-search | |
#bindkey '^R' history-incremental-search-backward | |
#bindkey "^[[1;5C" forward-word | |
#bindkey "^[[1;5D" backward-word | |
export EDITOR=/usr/bin/nvim | |
export GOPATH=~/.go | |
export PATH="$PATH:\ | |
$GOPATH/bin:\ | |
$HOME/.local/bin:\ | |
/home/binaryplease/.gem/ruby/2.2.0/bin:\ | |
/home/binaryplease/.gem/ruby/2.3.0/bin:\ | |
/usr/bin/core_perl:\ | |
/usr/bin/site_perl:\ | |
/usr/bin/vendor_perl:\ | |
/usr/bin:\ | |
/usr/lib/jvm/default/bin:\ | |
/usr/local/bin:\ | |
/usr/local/sbin" | |
export VISUAL=/usr/bin/nvim | |
# zplug | |
if [[ ! -d ~/.zplug ]]; then | |
git clone https://github.com/zplug/zplug ~/.zplug | |
source ~/.zplug/init.zsh && zplug update --self | |
fi | |
source ~/.zplug/init.zsh | |
zplug "zsh-users/zsh-syntax-highlighting" | |
zplug "zsh-users/zsh-history-substring-search" | |
zplug "bhilburn/powerlevel9k", use:powerlevel9k.zsh-theme | |
zplug "Valiev/almostontop" | |
zplug "arzzen/calc.plugin.zsh" | |
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment