mirror of
https://github.com/Matir/skel.git
synced 2026-05-25 21:19:09 -07:00
Fixup some startup scripts.
This commit is contained in:
16
dotfiles/env
16
dotfiles/env
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user