Fixing empty nocorrect and noglob aliases.
This commit is contained in:
parent
16aa48baeb
commit
baefa0e3dd
1 changed files with 13 additions and 23 deletions
|
@ -18,31 +18,21 @@ setopt CORRECT
|
||||||
#
|
#
|
||||||
|
|
||||||
# Disable correction.
|
# Disable correction.
|
||||||
alias ack='nocorrect ack'
|
for command (ack cd cp ebuild gcc gist grep heroku ln man mkdir mv mysql rm); do
|
||||||
alias cd='nocorrect cd'
|
if is-callable $command; then
|
||||||
alias cp='nocorrect cp'
|
alias $command="nocorrect $command"
|
||||||
alias ebuild='nocorrect ebuild'
|
fi
|
||||||
alias gcc='nocorrect gcc'
|
done
|
||||||
alias gist='nocorrect gist'
|
|
||||||
alias grep='nocorrect grep'
|
|
||||||
alias heroku='nocorrect heroku'
|
|
||||||
alias ln='nocorrect ln'
|
|
||||||
alias man='nocorrect man'
|
|
||||||
alias mkdir='nocorrect mkdir'
|
|
||||||
alias mv='nocorrect mv'
|
|
||||||
alias mysql='nocorrect mysql'
|
|
||||||
alias rm='nocorrect rm'
|
|
||||||
|
|
||||||
# Disable globbing.
|
# Disable globbing.
|
||||||
alias fc='noglob fc'
|
for command (fc find ftp history locate rake rsync scp sftp); do
|
||||||
alias find='noglob find'
|
if is-callable $command; then
|
||||||
alias ftp='noglob ftp'
|
alias $command="noglob $command"
|
||||||
alias history='noglob history'
|
fi
|
||||||
alias locate='noglob locate'
|
done
|
||||||
alias rake='noglob rake'
|
|
||||||
alias rsync='noglob rsync'
|
unset command
|
||||||
alias scp='noglob scp'
|
|
||||||
alias sftp='noglob sftp'
|
|
||||||
|
|
||||||
# Define general aliases.
|
# Define general aliases.
|
||||||
alias _='sudo'
|
alias _='sudo'
|
||||||
|
|
Loading…
Add table
Reference in a new issue