1
0
Fork 0

Merged correction.zsh into alias.zsh.

pull/3/head
Sorin Ionescu 14 years ago
parent d92a793d00
commit 04267e2bbc

@ -1,3 +1,6 @@
setopt correct # Correct commands.
setopt correct_all # Correct all arguments.
# The 'ls' Family # The 'ls' Family
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
if [[ "$DISABLE_COLOR" != 'true' ]]; then if [[ "$DISABLE_COLOR" != 'true' ]]; then
@ -30,11 +33,16 @@ alias sl='ls' # I often screw this up.
# General # General
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
alias rm='nocorrect rm -i' alias cd='nocorrect cd'
alias cp='nocorrect cp -i' alias cp='nocorrect cp -i'
alias mv='nocorrect mv -i' alias find='noglob find'
alias gcc='nocorrect gcc'
alias ln='nocorrect ln -i' alias ln='nocorrect ln -i'
alias man='nocorrect man'
alias mkdir='nocorrect mkdir -p' alias mkdir='nocorrect mkdir -p'
alias mv='nocorrect mv -i'
alias rm='nocorrect rm -i'
alias scp='nocorrect scp'
alias du='du -kh' alias du='du -kh'
alias df='df -kh' alias df='df -kh'
alias pu='pushd' alias pu='pushd'
@ -54,6 +62,12 @@ alias pbp='pbpaste'
alias print-path='echo -e ${PATH//:/\\n}' alias print-path='echo -e ${PATH//:/\\n}'
alias t="t --task-dir ~/.tasks --list todo.txt --delete-if-empty" alias t="t --task-dir ~/.tasks --list todo.txt --delete-if-empty"
(( $+commands[ebuild] )) && alias ebuild='nocorrect ebuild'
(( $+commands[gist] )) && alias gist='nocorrect gist'
(( $+commands[heroku] )) && alias heroku='nocorrect heroku'
(( $+commands[hpodder] )) && alias hpodder='nocorrect hpodder'
(( $+commands[mysql] )) && alias mysql='nocorrect mysql'
if [[ -x "${commands[htop]}" ]]; then if [[ -x "${commands[htop]}" ]]; then
alias top=htop alias top=htop
else else

@ -1,11 +0,0 @@
setopt correct_all
alias man='nocorrect man'
alias mv='nocorrect mv'
alias mysql='nocorrect mysql'
alias mkdir='nocorrect mkdir'
alias gist='nocorrect gist'
alias heroku='nocorrect heroku'
alias ebuild='nocorrect ebuild'
alias hpodder='nocorrect hpodder'
Loading…
Cancel
Save