change winpath from an alias to an environment variable

This commit is contained in:
Josh Holtrop 2014-03-03 11:26:03 -05:00
parent 2a9c242373
commit 628094554b

View File

@ -283,7 +283,7 @@ if [[ -e /bin/cygwin1.dll ]]; then
${winpython} "$@"
fi
}
alias winpath="PATH=\"$(echo $PATH | sed -e 's/:/\n/g' | grep cygdrive | tr '\n' ':')\""
winpath="$(echo $PATH | sed -e 's/:/\n/g' | grep cygdrive | tr '\n' ':' | sed -e 's/:*$//')"
fi
# source any machine-local aliases