Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add irbrc

  • Loading branch information...
commit 049d019e5db52e8895dc77e3cf72793be4fc2ee5 1 parent 7f442dd
@seaofclouds authored
Showing with 22 additions and 5 deletions.
  1. +11 −4 bash_profile
  2. +9 −0 irbrc
  3. +2 −1  readme.rdoc
View
15 bash_profile
@@ -17,8 +17,13 @@
alias dotfiles="mate $HOME/Dotfiles/"
# edit this file
-alias settings="mate $HOME/Dotfiles/bash_profile"
-alias reload="source $HOME/Dotfiles/bash_profile"
+alias settings-edit="mate $HOME/Dotfiles/bash_profile"
+
+alias settings-load="source $HOME/Dotfiles/bash_profile"
+alias reload="settings-load"
+
+alias settings-install="ruby $HOME/Dotfiles/install.rb && settings-load"
+
# ----------------------------------------------------------------------
# SHELL OPTIONS
@@ -87,6 +92,8 @@ parse_git_branch() {
# color chart: http://www.ibm.com/developerworks/linux/library/l-tip-prompt/
WHITEONPINK="\[\033[37;45;1m\]"
PINK="\[\033[0;35m\]"
+PINKBOLD="\[\033[0;35;1m\]"
+WHITEONTEAL="\[\033[37;46;1m\]"
TEAL="\[\033[0;36m\]"
PS_CLEAR="\[\033[0m\]"
SCREEN_ESC="\[\033k\033\134\]"
@@ -114,8 +121,8 @@ prompt_compact() {
}
prompt_color() {
- PS1="${WHITEONPINK}[\u@\h]${PS_CLEAR}${PINK} \w\$(parse_git_branch) \$${PS_CLEAR} "
- PS2="${TEAL}>${PS_CLEAR} "
+ PS1="${WHITEONPINK}[\u@\h]${PINK} \w\$(parse_git_branch) ${PINKBOLD}\$${PS_CLEAR} "
+ PS2="${WHITEONTEAL}>${PS_CLEAR} "
}
# ----------------------------------------------------------------------
View
9 irbrc
@@ -0,0 +1,9 @@
+%w{rubygems wirble}.each do |lib|
+ begin
+ require lib
+ rescue LoadError => err
+ $stderr.puts "Couldn't load #{lib}: #{err}"
+ end
+end
+
+%w{init colorize}.each { |str| Wirble.send(str) }
View
3  readme.rdoc
@@ -1,7 +1,7 @@
= Dotfiles
I like colors, a simple workflow, homebrew and ruby.
-If you do to, then you might like my dotfiles.
+If you do too, then you might like my dotfiles.
== Features
@@ -15,6 +15,7 @@ If you do to, then you might like my dotfiles.
* install {homebrew}[http://github.com/mxcl/homebrew]
* <tt>brew install bash-completion</tt>
+* install {git-bash-completion}[http://github.com/markgandolfo/git-bash-completion]
== Thanks
Please sign in to comment.
Something went wrong with that request. Please try again.