summaryrefslogtreecommitdiff
path: root/.profile
diff options
context:
space:
mode:
Diffstat (limited to '.profile')
-rw-r--r--.profile73
1 files changed, 73 insertions, 0 deletions
diff --git a/.profile b/.profile
new file mode 100644
index 0000000..155d886
--- /dev/null
+++ b/.profile
@@ -0,0 +1,73 @@
+# ~/.profile: executed by the command interpreter for login shells.
+# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
+# exists.
+
+# the default umask is set in /etc/profile; for setting the umask
+# for ssh logins, install and configure the libpam-umask package.
+umask 022
+
+## Paths #############################################################
+
+# Unix
+bins=`echo $HOME/bin $HOME/.prefix/bin $HOME/.gem/ruby/*/bin`
+for dir in $bins; do
+ if [ -d "$dir" ]; then
+ export PATH="$dir:$PATH"
+ fi
+done
+
+# Ruby
+for dir in $HOME/.prefix/lib; do
+ if [ -d "$dir" ]; then
+ export RUBYLIB="$dir"
+ fi
+done
+
+# Settings ###########################################################
+
+# TMPDIR
+if [ -d "$HOME/tmp" ]; then
+ export TMPDIR="$HOME/tmp"
+elif [ -d "$HOME/.prefix/tmp" ]; then
+ export TMPDIR="$HOME/.prefix/tmp"
+fi
+
+# Text editor
+if [ -f "$HOME/.selected_editor" ]; then
+ . "$HOME/.selected_editor"
+ export SELECTED_EDITOR
+ export ALTERNATE_EDITOR
+ export EDITOR="${EDITOR:-$SELECTED_EDITOR}"
+ export VISUAL="${VISUAL:-$SELECTED_EDITOR}"
+fi
+
+# GPG
+export GPGKEY=D4FFBFC9
+
+# Java
+_JAVA_OPTIONS=''
+_JAVA_OPTIONS+=' -Dawt.useSystemAAFontSettings=on'
+_JAVA_OPTIONS+=' -Dswing.aatext=true'
+_JAVA_OPTIONS+=' -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel'
+export _JAVA_OPTIONS
+
+# ALSA
+if [ -x "`which alsactl 2>/dev/null`" ]; then
+ alsactl --file $HOME/.alsa.save restore &> /dev/null || true
+fi
+
+# X11
+export XAUTHORITY=$HOME/.Xauthority
+
+# Start background programs ##########################################
+if [ -f "$HOME/.login-daemons" ]; then
+ . "$HOME/.login-daemons"
+fi
+
+# BASH ###############################################################
+if [ -n "$BASH_VERSION" ]; then
+ # include .bashrc if it exists
+ if [ -f "$HOME/.bashrc" ]; then
+ . "$HOME/.bashrc"
+ fi
+fi