Skip to content

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
...
  • 3 commits
  • 3 files changed
  • 0 commit comments
  • 1 contributor
Showing with 36 additions and 0 deletions.
  1. +33 −0 .bashrc_public
  2. +1 −0 .gemrc
  3. +2 −0 .irbrc
View
33 .bashrc_public
@@ -0,0 +1,33 @@
+alias gs="git status"
+alias gd="git diff"
+alias gf="git fetch"
+alias gw="git wtf;"
+alias gl="git log;"
+
+alias ll="ls -al"
+
+# http://henrik.nyh.se/2008/12/git-dirty-prompt
+# http://www.simplisticcomplexity.com/2008/03/13/show-your-git-branch-name-in-your-prompt/
+
+function proml {
+ local BLUE="\[\033[0;34m\]"
+ local RED="\[\033[0;31m\]"
+ local LIGHT_RED="\[\033[1;31m\]"
+ local GREEN="\[\033[0;32m\]"
+ local LIGHT_GREE="\[\033[1;32m\]"
+ local WHITE="\[\033[1;37m\]"
+ local LIGHT_GRAY="\[\033[0;37m\]"
+}
+proml
+
+function parse_git_dirty {
+ [[ $(git status 2> /dev/null | tail -n1) != "nothing to commit (working directory clean)" ]] && echo "☃ "
+}
+function parse_git_branch {
+ git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/[\1$(parse_git_dirty)]/"
+}
+
+export PS1='\[\033[0;32m\]\h\[\033[0;36m\] \w \[\033[0;31m\]$(parse_git_branch)\[\033[00m\]: '
+export HISTSIZE=10000
+export HISTIGNORE="&:ls:[bf]g:exit"
+export COMMAND_MODE="unix2003"
View
1 .gemrc
@@ -0,0 +1 @@
+gem: --no-ri --no-rdoc
View
2 .irbrc
@@ -0,0 +1,2 @@
+require 'rubygems'
+require 'interactive_editor'

No commit comments for this range

Something went wrong with that request. Please try again.