Last active
June 5, 2021 02:50
-
-
Save na0x2c6/a51d734373cfbc149020eed8035b11bf to your computer and use it in GitHub Desktop.
part of my zshrc
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
export EDITOR='vim' | |
export VISUAL='vim' | |
export PAGER='less' | |
# for `Ctrl + w` | |
export WORDCHARS='*?_.[]~-=&;!#$%^(){}<>' | |
export DIRSTACKSIZE=8 | |
bindkey -e | |
setopt clobber | |
setopt hist_ignore_space | |
setopt autopushd | |
unsetopt share_history | |
unsetopt multios | |
unsetopt AUTO_REMOVE_SLASH | |
bindkey \^U backward-kill-line | |
# fpath=(~/.zsh/completion $fpath) | |
autoload -Uz compinit && compinit | |
# https://github.com/sindresorhus/pure | |
fpath+=$HOME/.zsh/pure | |
autoload -U promptinit; promptinit | |
prompt pure | |
if ! type ghf > /dev/null ; then | |
ghf() { | |
local REPOS="$(ghq list | fzf)" | |
[[ -n "${REPOS}" ]] && cd "$(ghq root)/${REPOS}" | |
} | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment