1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-05-20 02:43:23 -07:00

prepend nocorrect/noglob to existing alises

This commit is contained in:
Connor Olding 2021-09-25 19:09:30 -07:00
parent 7dcead233f
commit ad6df3012f
3 changed files with 3 additions and 5 deletions

View File

@ -64,7 +64,7 @@ fi
if [ "$FANCY" -eq 1 ]; then
# 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 lr="lr -G"
#alias make="$(has colormake || has make)"

View File

@ -30,8 +30,6 @@ PROMPT_COMMAND='[ $? = 0 ] && PS1=${ret_succ} || PS1=${ret_fail}'
. ~/.-shrc
nocorrect() { "$@"; } # zsh stub
# this doesn't work for all scripts at the moment, but
ADDPATH "$HOME/sh"

View File

@ -280,10 +280,10 @@ function {
local x=
# deprecated `for` syntax; who cares?
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 \
rsync scp sftp tw twitch wget youtube-dl yt ytg
alias $x="noglob $x"
alias $x="noglob ${aliases[$x][@]:-$x}"
}
. ~/.prezto-compinit