-
-# if someone exported $SOE, catch errors
-if [[ $SOE ]]; then
- errcatch
-fi
-
-# I'd prefer to have system-wide, plus user ruby, due to bug in it
-# https://github.com/rubygems/rubygems/pull/1002
-# further problems: installing multi-user ruby and user ruby,
-# you don't get multi-user ruby when you sudo to root, unless its sudo -i.
-# There a third hybrid form, which passenger error suggested I use,
-# but it didn't actually work.
-
-# in cased I never need this
-# rvm for non-interactive shell: modified from https://rvm.io/rvm/basics
-#if [[ $(type -t rvm) == file && ! $(type -t ruby) ]]; then
-# source $(rvm 1.9.3 do rvm env --path)
-#fi
-
-# based on warning from rvmsudo
-export rvmsudo_secure_path=1
-
-# for other script I wrote
-#export ACME_TINY_PATH=/a/opt/acme-tiny
-export ACME_TINY_WRAPPER_CERT_DIR=/p/c/machine_specific/$HOSTNAME/webservercerts
-
-if [[ -s "/usr/local/rvm/scripts/rvm" ]]; then
- source "/usr/local/rvm/scripts/rvm"
-elif [[ -s $HOME/.rvm/scripts/rvm ]]; then
- source $HOME/.rvm/scripts/rvm
-fi
-
-
-path_add --end ~/.npm-global
-
-
-# didn't get drush working, if I did, this seems like the
-# only good thing to include for it.
-# Include Drush completion.
-# if [ -f "/home/ian/.drush/drush.complete.sh" ] ; then
-# source /home/ian/.drush/drush.complete.sh
-# fi
-
-
-# https://wiki.archlinux.org/index.php/Xinitrc#Autostart_X_at_login
-# i added an extra condition as gentoo xorg guide says depending on
-# $DISPLAY is fragile.
-if [[ ! $DISPLAY && $XDG_VTNR == 1 ]] && shopt -q login_shell && isarch; then
- exec startx
-fi