Skip to content

Instantly share code, notes, and snippets.

@euch
Created January 9, 2012 11:10
Show Gist options
  • Select an option

  • Save euch/1582525 to your computer and use it in GitHub Desktop.

Select an option

Save euch/1582525 to your computer and use it in GitHub Desktop.
new tiny 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 adam1
# aliases
alias ls='ls --color=auto'
# safety features
alias cp='cp -i'
alias mv='mv -i'
alias rm='rm -I' # 'rm -i' prompts for every file
alias ln='ln -i'
alias chown='chown --preserve-root'
alias chmod='chmod --preserve-root'
alias chgrp='chgrp --preserve-root'
# this source must be at the end of file!
source ~/scripts/zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment