mirror of
https://github.com/hcartiaux/dotfiles.git
synced 2024-10-18 17:25:23 +02:00
[bash] Grid5000 specific part (specific environment variables)
This commit is contained in:
parent
ee7e952a00
commit
912a509e3b
1 changed files with 11 additions and 0 deletions
11
bash/bashrc
11
bash/bashrc
|
@ -245,6 +245,17 @@ test -n "$INTERACTIVE" && test -n "$OAR_NODE_FILE" && (
|
|||
sort $OAR_NODE_FILE | uniq -c | awk '{printf(" %s*%d\n",$2,$1)}END{printf("\n")}' | sed -e 's/,$//'
|
||||
)
|
||||
|
||||
# ----------------------------------------------------------------------
|
||||
# GRID5000 specific
|
||||
# ----------------------------------------------------------------------
|
||||
|
||||
hostname | grep -e 'grid5000.fr$'
|
||||
if [ $? -eq 0 ] ; then
|
||||
export OAR_JOB_KEY_FILE=~/.ssh/id_rsa
|
||||
export HTTP_PROXY=http://proxy:3128
|
||||
export HTTPS_PROXY=$HTTP_PROXY
|
||||
fi
|
||||
|
||||
# ----------------------------------------------------------------------
|
||||
# BASH HISTORY
|
||||
# ----------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in a new issue