mirror of https://github.com/bjeanes/dotfiles.git
Added irbrc and inputrc. latter allows filtered history scrolling bindings to up and down in bash
parent
af75483efe
commit
cf8e1cbdd3
|
@ -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="/Library/PostgreSQL8/bin/:$PATH"
|
||||||
export PATH="/usr/local/mysql/bin/:$PATH"
|
export PATH="/usr/local/mysql/bin/:$PATH"
|
||||||
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
|
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
|
||||||
|
export IRBRC="$HOME/.irbrc"
|
||||||
|
|
||||||
export COLOR_NC='\e[0m' # No Color
|
export COLOR_NC='\e[0m' # No Color
|
||||||
export COLOR_WHITE='\e[1;37m'
|
export COLOR_WHITE='\e[1;37m'
|
||||||
|
|
|
@ -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
|
|
@ -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
|
Loading…
Reference in New Issue