diff --git a/bashrc b/bashrc old mode 100644 new mode 100755 index 0a5f9a4..0515a9b --- a/bashrc +++ b/bashrc @@ -2,6 +2,7 @@ export PATH="/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/:$PA export PATH="/Library/PostgreSQL8/bin/:$PATH" export PATH="/usr/local/mysql/bin/:$PATH" export PATH=/opt/local/bin:/opt/local/sbin:$PATH +export IRBRC="$HOME/.irbrc" export COLOR_NC='\e[0m' # No Color export COLOR_WHITE='\e[1;37m' diff --git a/inputrc b/inputrc new file mode 100644 index 0000000..d2d8a4d --- /dev/null +++ b/inputrc @@ -0,0 +1,27 @@ +# from http://www.pixelbeat.org/settings/.inputrc + + +# By default up/down are bound to previous-history +# and next-history respectively. The following does the +# same but gives the extra functionality where if you +# type any text (or more accurately, if there is any text +# between the start of the line and the cursor), +# the subset of the history starting with that text +# is searched (like 4dos for e.g.). +# Note to get rid of a line just Ctrl-C +# +"\e[B": history-search-forward +"\e[A": history-search-backward + +$if Bash + # F10 toggles mc on and off + # Note Ctrl-o toggles panes on and off in mc + "\e[21~": "mc\C-M" + + #do history expansion when space entered + Space: magic-space +$endif + +# Include system wide settings which are ignored +# by default if one has their own .inputrc +$include /etc/inputrc \ No newline at end of file diff --git a/irbrc b/irbrc new file mode 100755 index 0000000..bffa4fe --- /dev/null +++ b/irbrc @@ -0,0 +1,18 @@ +require 'irb/completion' +require 'map_by_method' +require 'what_methods' +require 'pp' +IRB.conf[:AUTO_INDENT]=true + +class Object + # Return a list of methods defined locally for a particular object. Useful + # for seeing what it does whilst losing all the guff that's implemented + # by its parents (eg Object). + def local_methods(obj = self) + (obj.methods - obj.class.superclass.instance_methods).sort + end +end + +require 'wirble' +Wirble.init +Wirble.colorize \ No newline at end of file diff --git a/rdebugrc b/rdebugrc new file mode 100644 index 0000000..e53addc --- /dev/null +++ b/rdebugrc @@ -0,0 +1,3 @@ +set autoeval +set autolist +set autoreload \ No newline at end of file