Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Personal additions to grml zsh config
## Common
export EDITOR="nano"
## ZSH
prompt grml-large
zstyle :prompt:grml-large:left:setup items jobs history shell-level date time newline user at host path vcs virtual-env newline percent
# git clone https://github.com/zsh-users/zsh-autosuggestions ~/.zsh/zsh-autosuggestions
source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
# git clone https://github.com/zsh-users/zsh-history-substring-search.git ~/.zsh/zsh-history-substring-search
source ~/.zsh/zsh-history-substring-search/zsh-history-substring-search.zsh
# git clone https://github.com/lukechilds/zsh-better-npm-completion.git .zsh/zsh-better-npm-completion
source ~/.zsh/zsh-better-npm-completion/zsh-better-npm-completion.plugin.zsh
bindkey '^[[A' history-substring-search-up
bindkey '^[[B' history-substring-search-down
## NVM
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
## FZF
[ -f /usr/share/doc/fzf/examples/completion.zsh ] && source /usr/share/doc/fzf/examples/completion.zsh
[ -f /usr/share/doc/fzf/examples/key-bindings.zsh ] && source /usr/share/doc/fzf/examples/key-bindings.zsh
_fzf_compgen_path() {
git ls-files "$1"
}
## Local bin
# export PATH="$PATH:$HOME/bin"
## Python
# export PATH="$PATH:/Users/secondfry/Library/Python/2.7/bin"
## Brew
# export PATH="/Users/secondfry/.brew/bin-overrides:$PATH:/Users/secondfry/.brew/bin"
# export FPATH="$FPATH:$(brew --prefix)/share/zsh/site-functions"
# export HOMEBREW_CACHE="/tmp/$USER/Homebrew/Caches"
# export HOMEBREW_TEMP="/tmp/$USER/Homebrew/Temp"
# mkdir -p $HOMEBREW_CACHE
# mkdir -p $HOMEBREW_TEMP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment