mirror of
https://github.com/Matir/skel.git
synced 2026-05-26 05:29:09 -07:00
82 lines
2.0 KiB
Plaintext
Executable File
82 lines
2.0 KiB
Plaintext
Executable File
# Sourced by zshrc as well as bash.
|
|
# Should only use POSIX shell constructs.
|
|
|
|
umask 027
|
|
|
|
# Paths and preferences
|
|
export PYTHONPATH="$HOME/.python:$PYTHONPATH"
|
|
export GOPATH="$HOME/Projects/Go:/usr/share/gocode"
|
|
export PATH="$HOME/bin:$HOME/bin/tools:/sbin:/usr/sbin:$PATH:$HOME/Projects/Go/bin"
|
|
export VISUAL=vim
|
|
export EDITOR=vim
|
|
export DEBEMAIL="david@systemoverlord.com"
|
|
export DEBFULLNAME="David Tomaschik"
|
|
export LESS="-MR"
|
|
export QUOTING_STYLE="literal" # Coreutils quotes
|
|
|
|
# Fix gnome-terminal
|
|
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
|
|
|
|
# Browser preferences
|
|
if [ -z "${BROWSER}" ] ; then
|
|
for t in google-chrome-beta google-chrome firefox ; do
|
|
if BROWSER=$(command -v ${t}); then
|
|
export BROWSER
|
|
fi
|
|
done
|
|
fi
|
|
|
|
# For virtualenvwrapper
|
|
export WORKON_HOME=$HOME/.virtualenvs
|
|
|
|
# GPG full key id
|
|
export GPG_ID=7FD58D9A196DCEEEAD671F94F4D7A7915DEA789B
|
|
|
|
# Setup locale
|
|
if test -x /usr/bin/locale ; then
|
|
for l in en_US.utf8 en_US.UTF-8 C.UTF-8 C ; do
|
|
if /usr/bin/locale -a | grep -q "${l}" ; then
|
|
export LC_CTYPE=${l}
|
|
export LC_NUMERIC=${l}
|
|
export LC_TIME=${l}
|
|
export LC_MONETARY=${l}
|
|
export LC_MESSAGES=${l}
|
|
export LC_PAPER=${l}
|
|
export LC_NAME=${l}
|
|
export LC_ADDRESS=${l}
|
|
export LC_TELEPHONE=${l}
|
|
export LC_MEASUREMENT=${l}
|
|
export LC_IDENTIFICATION=${l}
|
|
break
|
|
fi
|
|
done
|
|
else
|
|
export LC_CTYPE=C
|
|
export LC_NUMERIC=C
|
|
export LC_TIME=C
|
|
export LC_MONETARY=C
|
|
export LC_MESSAGES=C
|
|
export LC_PAPER=C
|
|
export LC_NAME=C
|
|
export LC_ADDRESS=C
|
|
export LC_TELEPHONE=C
|
|
export LC_MEASUREMENT=C
|
|
export LC_IDENTIFICATION=C
|
|
fi
|
|
export LC_COLLATE=C
|
|
|
|
# shellcheck source=/dev/null
|
|
test -e "$HOME/.localenv" && . "$HOME/.localenv"
|