mirror of
https://github.com/notwa/rc
synced 2025-02-05 07:43:22 -08:00
prepend nocorrect/noglob to existing alises
This commit is contained in:
parent
7dcead233f
commit
ad6df3012f
3 changed files with 3 additions and 5 deletions
|
@ -64,7 +64,7 @@ fi
|
||||||
|
|
||||||
if [ "$FANCY" -eq 1 ]; then
|
if [ "$FANCY" -eq 1 ]; then
|
||||||
# busybox is smart enough to ignore --color flags when unsupported.
|
# busybox is smart enough to ignore --color flags when unsupported.
|
||||||
alias grep='nocorrect grep --color=auto'
|
alias grep='grep --color=auto'
|
||||||
alias ls='ls --color=auto'
|
alias ls='ls --color=auto'
|
||||||
alias lr="lr -G"
|
alias lr="lr -G"
|
||||||
#alias make="$(has colormake || has make)"
|
#alias make="$(has colormake || has make)"
|
||||||
|
|
|
@ -30,8 +30,6 @@ PROMPT_COMMAND='[ $? = 0 ] && PS1=${ret_succ} || PS1=${ret_fail}'
|
||||||
|
|
||||||
. ~/.-shrc
|
. ~/.-shrc
|
||||||
|
|
||||||
nocorrect() { "$@"; } # zsh stub
|
|
||||||
|
|
||||||
# this doesn't work for all scripts at the moment, but
|
# this doesn't work for all scripts at the moment, but
|
||||||
ADDPATH "$HOME/sh"
|
ADDPATH "$HOME/sh"
|
||||||
|
|
||||||
|
|
|
@ -280,10 +280,10 @@ function {
|
||||||
local x=
|
local x=
|
||||||
# deprecated `for` syntax; who cares?
|
# deprecated `for` syntax; who cares?
|
||||||
for x in ack cd cp ebuild gcc gist grep ln man mkdir mv rm
|
for x in ack cd cp ebuild gcc gist grep ln man mkdir mv rm
|
||||||
alias $x="nocorrect $x"
|
alias $x="nocorrect ${aliases[$x][@]:-$x}"
|
||||||
for x in ai arith curl fc find ftp hex history let locate \
|
for x in ai arith curl fc find ftp hex history let locate \
|
||||||
rsync scp sftp tw twitch wget youtube-dl yt ytg
|
rsync scp sftp tw twitch wget youtube-dl yt ytg
|
||||||
alias $x="noglob $x"
|
alias $x="noglob ${aliases[$x][@]:-$x}"
|
||||||
}
|
}
|
||||||
|
|
||||||
. ~/.prezto-compinit
|
. ~/.prezto-compinit
|
||||||
|
|
Loading…
Add table
Reference in a new issue