Skip to content

Instantly share code, notes, and snippets.

@pierrechevalier83
Created August 4, 2018 14:45
Show Gist options
  • Save pierrechevalier83/4e0ba83a901159d0178542ebd2f8ca44 to your computer and use it in GitHub Desktop.
Save pierrechevalier83/4e0ba83a901159d0178542ebd2f8ca44 to your computer and use it in GitHub Desktop.
# Prereq:
# sudo pacman -S zsh-theme-powerlevel9k zsh-syntax-highlighting zsh-autosuggestions
# fzf ttf-nerd-fonts-symbols
# Fancying-up the prompt
export TERM="xterm-256color"
POWERLEVEL9K_MODE=nerdfont-complete
POWERLEVEL9K_SHORTEN_DIR_LENGTH=2
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(os_icon context dir vcs)
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status)
source /usr/share/zsh-theme-powerlevel9k/powerlevel9k.zsh-theme
# Enable syntax highlighting and autosuggestions
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting
.zsh
source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
# Fuzzy finder
export FZF_DEFAULT_OPTS='--height 20% --reverse --border'
source /usr/share/fzf/key-bindings.zsh
# Enable completions
autoload -Uz compinit
compinit
# Persistent history
HISTSIZE=5000 #How many lines of history to keep in memory
HISTFILE=~/.zsh_history #Where to save history to disk
SAVEHIST=10000 #Number of history entries to save to disk
setopt appendhistory
setopt sharehistory
setopt incappendhistory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment