Ches Martin avatar Ches Martin committed 5f871dd

bash: autojump, AWS envvars, etc.

Comments (0)

Files changed (4)


+# 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/"
+    export AWS_IAM_HOME="/usr/local/Cellar/aws-iam-tools/HEAD/jars"
+    export AWS_CLOUDWATCH_HOME="/usr/local/Cellar/cloud-watch/"
+    export AWS_AUTO_SCALING_HOME="/usr/local/Cellar/auto-scaling/"
+    export AWS_CLOUDFORMATION_HOME="/usr/local/Cellar/aws-cfn-tools/1.0.8/jars"


 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'
 # ====================================================
 # =         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 /Volumes/sshfs/Media -oauto_cache,reconnect,volname="Media on kodama"'
     # Leopard Quick Look:
     alias ql='qlmanage -p "$@" >& /dev/null'


 stty stop undef
 stty start undef
+if [ -f `brew --prefix`/etc/autojump ]; then
+    . `brew --prefix`/etc/autojump
 # =================================
 # =       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/ ]] && source ~/.aws/
 # Memcached
     . ~/.bash.d/
+# Machine-specific stuff, creds kept out of SCM, etc.
+for f in ~/.local/*.sh; do
+    . "$f"
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
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.