1
0
Fork 0
mirror of https://github.com/hcartiaux/dotfiles.git synced 2024-10-18 09:15:24 +02:00

[bash] bash_environment, shfmt run

This commit is contained in:
Hyacinthe Cartiaux 2018-02-25 13:07:30 +01:00
parent 9f4d2f1de8
commit 41b2f556d4

View file

@ -89,7 +89,7 @@ export EDITOR
export SVN_EDITOR=$EDITOR
# Default pager ('less' is so much better than 'more'...)
if test -n "$(command -v less)" ; then
if test -n "$(command -v less)"; then
export PAGER="less -FiRSwX"
else
export PAGER=more
@ -139,7 +139,7 @@ export PDSH_SSH_ARGS_APPEND="-q -o StrictHostKeyChecking=no -o UserKnownHostsFil
# GRID5000 specific
# ----------------------------------------------------------------------
if [[ -n "$(echo $FQDN | grep -o .grid5000.fr)" ]] ; then
if [[ -n "$(echo $FQDN | grep -o .grid5000.fr)" ]]; then
export OAR_JOB_KEY_FILE=~/.ssh/id_rsa
# export http_proxy=http://proxy:3128
# export https_proxy=$http_proxy
@ -157,7 +157,7 @@ alias cdgp='cd $GPUPPET_PREFIX/repo && source setup_env.sh && echo "==> Grid5000
# GAIA specific (XCS Portal config)
# ----------------------------------------------------------------------
if [[ "$DOMAIN" = "gaia-cluster" ]] ; then
if [[ $DOMAIN == "gaia-cluster" ]]; then
# XF
source /XF/App/Scripts/xf_Globalenv.rc
export PATH=$PATH:/XF/Admin/Scripts
@ -176,15 +176,14 @@ fi
# RVM specific (see http://beginrescueend.com/)
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" || true
if [[ $(which ruby 2>/dev/null | grep -c "$HOME/.rvm") != 0 ]] ; then
if [[ $(which ruby 2>/dev/null | grep -c "$HOME/.rvm") != 0 ]]; then
# Get off my lawn
rvm reset
fi
if [[ -d ~/repos/ulhpc_gitlab/ULHPC/sysadmins/scripts/idm ]] ; then
source ~/repos/ulhpc_gitlab/ULHPC/sysadmins/scripts/idm/ulhpc_user_ad_get_enddate.sh
source ~/repos/ulhpc_gitlab/ULHPC/sysadmins/scripts/idm/ulhpc_user_ldap_get_enddate.sh
source ~/repos/ulhpc_gitlab/ULHPC/sysadmins/scripts/idm/ulhpc_user_ldap_set_enddate.sh
source ~/repos/ulhpc_gitlab/ULHPC/sysadmins/scripts/idm/ulhpc_user_compare_enddate.sh
if [[ -d ~/repos/ulhpc_gitlab/ULHPC/sysadmins/scripts/idm ]]; then
source ~/repos/ulhpc_gitlab/ULHPC/sysadmins/scripts/idm/ulhpc_user_ad_get_enddate.sh
source ~/repos/ulhpc_gitlab/ULHPC/sysadmins/scripts/idm/ulhpc_user_ldap_get_enddate.sh
source ~/repos/ulhpc_gitlab/ULHPC/sysadmins/scripts/idm/ulhpc_user_ldap_set_enddate.sh
source ~/repos/ulhpc_gitlab/ULHPC/sysadmins/scripts/idm/ulhpc_user_compare_enddate.sh
fi