Skip to content

Instantly share code, notes, and snippets.

@na0x2c6
Last active June 5, 2021 02:50
Show Gist options
  • Save na0x2c6/a51d734373cfbc149020eed8035b11bf to your computer and use it in GitHub Desktop.
Save na0x2c6/a51d734373cfbc149020eed8035b11bf to your computer and use it in GitHub Desktop.
part of my zshrc
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