Permalink
Browse files

Random stuffs

  • Loading branch information...
1 parent d3e6ee9 commit ec98d7c9089178a16860b9b7af9d9673901f4852 @dcramer committed Jun 14, 2013
Showing with 13 additions and 5 deletions.
  1. +6 −0 bash/bashrc
  2. +7 −5 python/pythonrc.py
View
@@ -220,3 +220,9 @@ fi;
[[ -s "/Users/dcramer/.rvm/scripts/rvm" ]] && source "/Users/dcramer/.rvm/scripts/rvm" # This loads RVM into a shell session.
export CHEF_USER=zeeg
+
+# AWS tooling
+#export JAVA_HOME="$(/usr/libexec/java_home)"
+#export EC2_PRIVATE_KEY="$(/bin/ls "$HOME"/.ec2/pk-*.pem | /usr/bin/head -1)"
+#export EC2_CERT="$(/bin/ls "$HOME"/.ec2/cert-*.pem | /usr/bin/head -1)"
+#export AWS_RDS_HOME="/usr/local/Cellar/rds-command-line-tools/1.12.002/libexec"
View
@@ -2,7 +2,6 @@
# Inspired by https://github.com/dag/dotfiles/blob/master/python/.pythonrc
-import atexit
import os
import readline
@@ -17,8 +16,11 @@
readline.set_history_length(1024 * 5)
-def write_history(x):
- import readline
- readline.write_history_file(x)
+def write_history(history):
+ def wrapped():
+ import readline
+ readline.write_history_file(history)
+ return wrapped
-atexit.register(write_history)
+import atexit
+atexit.register(write_history(history))

0 comments on commit ec98d7c

Please sign in to comment.