fi
-. virtualenvwrapper_lazy.sh 2>/dev/null
-
if [ -n "$VIRTUAL_ENV" ] && ! type deactivate >/dev/null 2>&1; then
. "$VIRTUAL_ENV/bin/activate"
fi
trap '[ "$VIRTUAL_ENV" ] && deactivate' EXIT
+. virtualenvwrapper_lazy.sh 2>/dev/null
+
+
+if test -x /usr/bin/screen >/dev/null 2>&1; then
+ screen_newwin() {
+ history -a
+ screen "$@"
+ }
+fi
+
if [ "$SHLVL" -eq 1 -a "`type -t X`" = function ] && which startx >/dev/null 2>&1; then
# From https://stackoverflow.com/a/18839557
X() { history -a; _non_bash_X; history -r; }
fi
-
-if test -x /usr/bin/screen >/dev/null 2>&1; then
- screen_newwin() {
- history -a
- screen "$@"
- }
-fi