aboutsummaryrefslogtreecommitdiffstats
path: root/base/profile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-06-25 12:56:30 +0200
committerMattias Andrée <maandree@kth.se>2021-06-25 12:56:30 +0200
commit5a7db2f34aa6a6787d98a001b6d28be97f36abf4 (patch)
tree52db199005cc5daee35b5c0e9b3d28b534449e1c /base/profile
downloaddotfiles-5a7db2f34aa6a6787d98a001b6d28be97f36abf4.tar.gz
dotfiles-5a7db2f34aa6a6787d98a001b6d28be97f36abf4.tar.bz2
dotfiles-5a7db2f34aa6a6787d98a001b6d28be97f36abf4.tar.xz
First commit
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--base/profile43
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