From a7f6f2073c8d60b433775c6f4462f58d28ae8d25 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Fri, 21 Oct 2011 15:14:40 -0400 Subject: Some systems *cough*CentOS6*cough* want you to add $HOME/bin to $PATH in your .profile/.bash_profile, not /etc/profile. --- .profile | 4 ++++ 1 file changed, 4 insertions(+) (limited to '.profile') diff --git a/.profile b/.profile index 36a3ec5..4bf1916 100644 --- a/.profile +++ b/.profile @@ -9,6 +9,10 @@ umask 022 # set PATH so it includes user's private bin if it exists +if [ -d "$HOME/bin" ]; then + export PATH="$HOME/bin:$PATH" +fi + if [ -d "$HOME/.prefix/bin" ]; then export PATH="$HOME/.prefix/bin:$PATH" fi -- cgit v1.2.3-2-g168b From 2f7a1f33ab6fc5017cd58e9db61e430dffc73846 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Fri, 21 Oct 2011 16:27:52 -0400 Subject: Add the user's rubygems bin to $PATH, if it exists --- .profile | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to '.profile') diff --git a/.profile b/.profile index 4bf1916..a6704af 100644 --- a/.profile +++ b/.profile @@ -9,13 +9,12 @@ umask 022 # set PATH so it includes user's private bin if it exists -if [ -d "$HOME/bin" ]; then - export PATH="$HOME/bin:$PATH" -fi - -if [ -d "$HOME/.prefix/bin" ]; then - export PATH="$HOME/.prefix/bin:$PATH" -fi +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 # if running bash if [ -n "$BASH_VERSION" ]; then -- cgit v1.2.3-2-g168b From a46c5c23b26cf149065bd516a781bc66535d8bcf Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Fri, 11 Nov 2011 15:19:25 -0500 Subject: move daemon-starting into a separate file, do it in .profile (and .bashrc) --- .profile | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) (limited to '.profile') diff --git a/.profile b/.profile index 36a3ec5..bc8d481 100644 --- a/.profile +++ b/.profile @@ -13,12 +13,10 @@ if [ -d "$HOME/.prefix/bin" ]; then export PATH="$HOME/.prefix/bin:$PATH" fi -# if running bash -if [ -n "$BASH_VERSION" ]; then - # include .bashrc if it exists - if [ -f "$HOME/.bashrc" ]; then - . "$HOME/.bashrc" - fi +if [ -d "$HOME/tmp"]; then + export TMPDIR="$HOME/tmp" +elif [ -d "$HOME/.prefix/tmp"]; then + export TMPDIR="$HOME/.prefix/tmp" fi # set SELECTED_EDITOR, EDITOR, and VISUAL to set the text editor used @@ -30,6 +28,18 @@ if [ -f "$HOME/.selected_editor" ]; then export VISUAL="${VISUAL:-$SELECTED_EDITOR}" fi +if [ -f "$HOME/.login-daemons" ]; then + . "$HOME/.login-daemons" +fi + +# if running bash +if [ -n "$BASH_VERSION" ]; then + # include .bashrc if it exists + if [ -f "$HOME/.bashrc" ]; then + . "$HOME/.bashrc" + fi +fi + if [ -x "`which alsactl`" ]; then alsactl --file $HOME/.alsa.save restore &> /dev/null || true fi -- cgit v1.2.3-2-g168b From fa0728204665d9d985f212826be65a563312e7e6 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 13 Nov 2011 14:46:29 -0500 Subject: oops, `[' needs whitespace before `]' --- .profile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.profile') diff --git a/.profile b/.profile index 004b7a2..bc03469 100644 --- a/.profile +++ b/.profile @@ -16,7 +16,7 @@ for dir in $bins; do fi done -if [ -d "$HOME/tmp"]; then +if [ -d "$HOME/tmp" ]; then export TMPDIR="$HOME/tmp" elif [ -d "$HOME/.prefix/tmp"]; then export TMPDIR="$HOME/.prefix/tmp" -- cgit v1.2.3-2-g168b