Skip to content

Instantly share code, notes, and snippets.

@tuxlinuxien
Created May 31, 2016 04:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tuxlinuxien/c56afddd2d47f11a155e5fc5ad4bc241 to your computer and use it in GitHub Desktop.
Save tuxlinuxien/c56afddd2d47f11a155e5fc5ad4bc241 to your computer and use it in GitHub Desktop.
root .zshrc
#!/bin/zsh
# completion
autoload -U compinit
compinit
zstyle ':completion:*' menu select
setopt MENU_COMPLETE
# correction
setopt correctall
# history
export HISTFILE=~/.zhistory
export HISTSIZE=50000
export SAVEHIST=50000
setopt histignoredups
setopt extendedhistory
setopt incappendhistory
# history search & completion
autoload history-search-end
bindkey "^[[A" history-search-backward
bindkey "^[[B" history-search-forward
# prompt
autoload -U promptinit
promptinit
prompt adam2
# aliases
alias ls='ls --color=auto'
# safety features
alias cp='cp -i'
alias mv='mv -i'
alias rm='rm -I'
alias ll='ls -l'
alias st='git status'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment