1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-06-26 09:07:12 -07:00

the most subtle of bugs…

This commit is contained in:
Connor Olding 2013-11-11 15:11:22 -08:00
parent 10afbf7fef
commit 14e33189f3
2 changed files with 5 additions and 3 deletions

View File

@ -19,7 +19,7 @@ has() { which "$1" >/dev/null && which "$1"; }
# cleanup in case of inherited exports
for x in AR CC CPP CXX CFLAGS CPPFLAGS CXXFLAGS LDFLAGS RANLIB RC WINDRES; do
export $x=
unset $x
done
export PREFIX="$HOME/opt/local"
@ -37,7 +37,7 @@ export GOPATH="$HOME/go"
for x in ls dir vdir grep fgrep egrep; do
alias $x="$x --color=auto"
done
alias make="$(has colormake || has make)"
#alias make="$(has colormake || has make)"
# just flags
export LESS='-SR'
@ -66,5 +66,6 @@ alias unwrap='awk '\''BEGIN{RS="\n\n";FS="\n"}{for(i=1;i<=NF;i++)printf "%s ",$i
alias picky='{ pacman -Qgq base base-devel | tee -; pacman -Qtnq; } | sort | uniq -u'
alias unused='{ pacman -Qt; pacman -Qe | tee -; } | sort | uniq -u'
#. ~/mingw.sh
. ~/sh/lsf.sh/lsf.sh
. ~/sh/z/z.sh

3
sh/mw
View File

@ -20,7 +20,8 @@ mingw-disable() {
local e=
for e in PATH PREFIX CC CPP CXX CFLAGS CPPFLAGS CXXFLAGS LDFLAGS AR RANLIB RC WINDRES SDL_CFLAGS SDL_LDLIBS; do
export "$e=${_mw_[$e]}"
local v="${_mw_[$e]}"
[ -n "$v" ] && export "$e=$v" || unset "$e"
done
echo "mingw disabled"
}