Created
January 9, 2012 11:10
-
-
Save euch/1582525 to your computer and use it in GitHub Desktop.
new tiny zshrc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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