diff options
Diffstat (limited to '')
-rw-r--r-- | base/profile | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/base/profile b/base/profile new file mode 100644 index 0000000..4410d8e --- /dev/null +++ b/base/profile @@ -0,0 +1,43 @@ +# -*- shell-script -*- + +export LOCALE="en_GB.UTF-8" +export LC_ALL="en_GB.UTF-8" +export LANG="en_GB.UTF-8" + +export MAIN_ALSA_CARD=0 +export MAIN_ALSA_MIXER=PCM + +if test -z "${XDG_RUNTIME_DIR}"; then + export XDG_RUNTIME_DIR='/tmp/.~'"$(whoami)" +fi +mkdir -p -- "${XDG_RUNTIME_DIR}" + +if test -x ~/.local/bin/e; then + export EDITOR=~/.local/bin/e +elif test -x /usr/bin/emacs; then + export EDITOR="emacs -nw" +elif test -x /usr/bin/vis; then + export EDITOR="vis" +elif test -x /usr/bin/nano; then + export EDITOR="nano" +elif test -x /usr/bin/vim; then + export EDITOR="vim" +elif test -x /usr/bin/vi; then + export EDITOR="vi" +fi +export VISUAL="${EDITOR}" + +for __script in ~/.config/profile.d/*; do + if test -r "${__script}"; then + . "${__script}" + fi +done +unset __script + +if test -r ~/.config/"profile-$(hostname)"; then + . ~/.config/"profile-$(hostname)" +fi + +if test -r ~/work/.config/profile; then + . ~/work/.config/profile +fi |