Ches Martin avatar Ches Martin committed 5f871dd

bash: autojump, AWS envvars, etc.

Comments (0)

Files changed (4)

.aws/aws-envvars.sh

+# Just source this to set the ENV vars.
+# Set AWS_CREDENTIAL_FILE in ~/.local
+
+export EC2_PRIVATE_KEY="$(/bin/ls $HOME/.ec2/pk-*.pem)"
+export EC2_CERT="$(/bin/ls $HOME/.ec2/cert-*.pem)"
+
+if [ "$(uname -s)" == "Darwin" ]; then
+    export EC2_HOME="/usr/local/Cellar/ec2-api-tools/1.5.2.3/jars"
+    export AWS_IAM_HOME="/usr/local/Cellar/aws-iam-tools/HEAD/jars"
+    export AWS_CLOUDWATCH_HOME="/usr/local/Cellar/cloud-watch/1.0.12.1/jars"
+    export AWS_AUTO_SCALING_HOME="/usr/local/Cellar/auto-scaling/1.0.49.1/jars"
+    export AWS_CLOUDFORMATION_HOME="/usr/local/Cellar/aws-cfn-tools/1.0.8/jars"
+fi
+
+export SERVICE_HOME="$AWS_CLOUDWATCH_HOME"
+

.bash.d/aliases.sh

 alias egrep='egrep --color=auto'
 alias pcregrep='pcregrep --color=auto'
 
+# History editing/repetition
 alias r='fc -s'
 
 # TODO: perhaps functions to detect and use servernames for CLI vs. GUI--
 
 alias ri='ri -f ansi'
 
+# External IP
+alias myip='curl ifconfig.me'
+
 # ====================================================
 # =         App- and Platform-specific Bits          =
 # ====================================================
     # Remote Access
     #
     alias minissh='sshfs ches@kodama.local:/Users/ches /Volumes/sshfs/ches -oauto_cache,reconnect,volname="ches on kodama"'
+    alias mediassh='sshfs ches@nausicaamedia.dyndns.org:/Volumes/Media /Volumes/sshfs/Media -oauto_cache,reconnect,volname="Media on kodama"'
 
     # Leopard Quick Look:
     alias ql='qlmanage -p "$@" >& /dev/null'

.bash.d/platform-osx.sh

 stty stop undef
 stty start undef
 
+# https://github.com/joelthelion/autojump/wiki
+if [ -f `brew --prefix`/etc/autojump ]; then
+    . `brew --prefix`/etc/autojump
+fi
+
 # =================================
 # =       App-specific Bits       =
 # =================================
 
+export JAVA_HOME="/Library/Java/Home/"
+export NODE_PATH="/usr/local/lib/node_modules"
+
 #
 # Custom Shake path
 #
 
 export JRUBY_HOME=$HOME/.rvm/rubies/jruby-1.6.1
 
+# AWS env vars that the Java API tools want
+[[ -r ~/.aws/aws-envvars.sh ]] && source ~/.aws/aws-envvars.sh
+
 #
 # Memcached
 #
     . ~/.bash.d/platform-linux.sh
 fi
 
+# Machine-specific stuff, creds kept out of SCM, etc.
+for f in ~/.local/*.sh; do
+    . "$f"
+done
+
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.