Fixup some startup scripts.

This commit is contained in:
David Tomaschik
2019-04-09 15:33:53 +02:00
parent 90060a290e
commit 426fdbd7ee
3 changed files with 19 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
# Sourced by zshrc as well as bash.
# Should only use POSIX shell constructs.
umask 027
ulimit -c unlimited
# Paths and preferences
export PYTHONPATH="$HOME/.python:$PYTHONPATH"
@@ -15,11 +15,20 @@ export LESS="-MR"
export QUOTING_STYLE="literal" # Coreutils quotes
# Fix gnome-terminal
if [ "$TERM" = "xterm" -a "$COLORTERM" = "gnome-terminal" ] ; then
if [ "$TERM" = "xterm" ] && [ "$COLORTERM" = "gnome-terminal" ] ; then
# Requires `ncurses-base` package for terminfo.
export TERM="xterm-256color"
fi
# Terminal preferences for i3
if [ -z "${TERMINAL}" ] ; then
for t in urxvt gnome-terminal; do
if TERMINAL=$(command -v ${t}) ; then
export TERMINAL
fi
done
fi
# For virtualenvwrapper
export WORKON_HOME=$HOME/.virtualenvs
export VIRTUALENVWRAPPER_VIRTUALENV_ARGS='--no-site-packages'
@@ -60,4 +69,5 @@ else
fi
export LC_COLLATE=C
if [ -e $HOME/.localenv ] ; then source $HOME/.localenv ; fi
# shellcheck source=/dev/null
test -e "$HOME/.localenv" && . "$HOME/.localenv"