@@ -567,6 +567,9 @@ git_purge() {
567567 git_purge_remote_branches $branch
568568}
569569
570+ # Replacement for st?
571+ alias gs=" git status --untracked-files=no"
572+
570573# ######################################
571574# distributed version control section #
572575# ######################################
@@ -1035,7 +1038,8 @@ function releaseCommits() {
10351038}
10361039
10371040function jgrep() {
1038- #{ rake routes > ~ /dev/rake-routes & } 2> /dev/null
1041+ # Run this to regenerate
1042+ # bundle exec rake routes > ~/dev/rake-routes
10391043 cat ~ /dev/rake-routes | grep " $1 "
10401044}
10411045
@@ -1142,6 +1146,22 @@ if [ -d "$TRACKER_FLOW_PATH" ]; then
11421146 . " $TRACKER_FLOW_PATH /tracker_completion.bash"
11431147fi
11441148
1149+ # Kill stanky Rails Console
1150+ function kc() {
1151+ ps aux | grep -E ' bin/rails c|rails_console' | grep -v ' grep' | awk ' {print $2}' | xargs kill -9
1152+ }
1153+
1154+ # Check out file to branch and unstage it
1155+ function fb() {
1156+ if [[ -z " $1 " || -z " $2 " ]]; then
1157+ echo ' Usage: filebranch branchname filename'
1158+ fi
1159+ dqt=' "'
1160+ echo " git checkout ${dbq}${1}${dbq} -- ${dbq}${2}${dbq} && git reset HEAD ${dbq}${2}${dbq} "
1161+ git checkout " $1 " -- " $2 " && git reset HEAD " $2 "
1162+ git status --untracked-files=no
1163+ }
1164+
11451165# Chruby
11461166CHRUBY_PATH=" /usr/local/share/chruby/"
11471167if [ -d " $CHRUBY_PATH " ]; then
0 commit comments