/t.org
/old-unused
/.emacs.d
-/repos
# 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
fi
fi
fi
-if getent hosts $proxy_host && nc -z $proxy_host $proxy_port; then
+if getent hosts $proxy_host && nc -z $proxy_host $proxy_port &>/dev/null; then
echo $proxy_url
else
if [[ ! -e $f || -w $f ]]; then
-export ACME_TINY_WRAPPER_CERT_DIR=/p/c/machine_specific/$HOSTNAME/webservercerts
-export ACME_TINY_PATH="/a/opt/acme-tiny/acme_tiny.py"
-
if [ -f $HOME/path_add-function ]; then
. $HOME/path_add-function
path_add /usr/sbin /usr/local/sbin /sbin
local help="usage: path_add [options] PATH
--help: print this
--end: adds to end of path, which will give it lowest priority
---ifexists: add to path only if the directory exists"
+--force: add to path even if directory does not exist"
local found x y z ifexists end loop newpath
force=false
end=false
unset IFS
PATH="$newpath"
for x in "$@"; do
- x="$(readlink -f "$x")"
if $force || [ -d "$x" ]; then
if [ ! "$PATH" ]; then
PATH="$x"