-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
always git pull on login shell; improve pip handling; correct exports
- Loading branch information
C Anthony Risinger
committed
Sep 23, 2012
1 parent
e31a3be
commit 2baa624
Showing
3 changed files
with
68 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,23 @@ | ||
#!/bin/bash | ||
|
||
|
||
export PATH="${HOME}/bin:$PATH" | ||
export PATH=~/bin:"$PATH" | ||
export ELLIPSIS=~/.../self/ | ||
export ELLIPSIS_HOSTS+=" .sta.xtfx.net" | ||
|
||
|
||
if [[ $- == *i* ]]; then | ||
#declare -x TMPDIR=${HOME}/tmp | ||
declare TMPDIR=${HOME}/tmp | ||
declare -x _TMPDIR=/tmp/user-${USER}/tmp | ||
interactive=${-//[^i]} | ||
|
||
! [[ -d ${_TMPDIR} ]] && | ||
(umask 0077; mkdir --parents ${_TMPDIR}) && | ||
mkdir ${_TMPDIR}/{dl,misc} | ||
! [[ $(readlink -f ${TMPDIR}) == ${_TMPDIR} ]] && | ||
rm -f ${TMPDIR} && | ||
ln -s ${_TMPDIR} ${TMPDIR} | ||
[[ -f ~/.../config && ${UID} == ${EUID} ]] && ( | ||
export GIT_DIR=~/... | ||
_0=$(git rev-parse HEAD) && | ||
git pull --quiet && | ||
_1=$(git rev-parse HEAD) && | ||
[[ ${_0} != ${_1} ]]; _e=${?} | ||
[[ ${_e} -eq 0 && -n ${interactive} ]] && | ||
git diff --stat ${_0} | ||
exit ${_e} | ||
) && | ||
exec ${BASH} | ||
|
||
[[ -f ~/.../config && ${UID} == ${EUID} ]] && | ||
( declare -x GIT_DIR=${HOME}/... | ||
ref0=$(git rev-parse HEAD) | ||
git pull | ||
ref1=$(git rev-parse HEAD) | ||
[[ ${ref0} != ${ref1} ]] ) && | ||
exec ${BASH} | ||
|
||
[[ -f ${ELLIPSIS}data/profile/etc/bash/interactive ]] && | ||
. ${ELLIPSIS}data/profile/etc/bash/interactive | ||
fi | ||
[[ -n ${interactive} && -f ${ELLIPSIS}data/profile/etc/bash/interactive ]] && | ||
. ${ELLIPSIS}data/profile/etc/bash/interactive |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters