Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adds all bash related stuff into one .cmd_profile

Signed-off-by: Akash Manohar J <akash@akash.im>
  • Loading branch information...
commit b8de46204247670b126ebb647bdf89f2769de164 1 parent 6523cc6
Akash Manohar authored
Showing with 27 additions and 23 deletions.
  1. +0 −7 .bash_pants
  2. +0 −11 .bash_profile
  3. +27 −5 .cmd_profile
7 .bash_pants
View
@@ -1,7 +0,0 @@
-alias gl="git log --color --oneline --decorate"
-alias gs="git status -sb"
-alias gp="git push"
-alias gu="git pull"
-
-alias pg_start="pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start"
-alias pg_stop="pg_ctl -D /usr/local/var/postgres stop -s -m fast"
11 .bash_profile
View
@@ -1,14 +1,3 @@
source ~/dot-files/.cmd_profile
-source ~/dot-files/color_names.sh
-source ~/dot-files/git-completion.sh
-source ~/dot-files/ruby_identifier.sh
-export PATH=/usr/local/bin:/usr/local/sbin:$PATH
-# Displays 1.9.3@gemset dir:branch
-PS1='\[\e[0;36m\][\[\e[0;30m\]$(rvm_version) \[\e[1;37m\]\W\[\e[0;35m\]$(__git_ps1 ":%s")\[\e[0;36m\]]⚡ \[\e[0;37m\]'
-
-PS1="\[\033[G\]$PS1"
-
-[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
-[[ -s $HOME/.pythonbrew/etc/bashrc ]] && source $HOME/.pythonbrew/etc/bashrc
32 .cmd_profile
View
@@ -1,18 +1,40 @@
+source ~/dot-files/color_names.sh
+source ~/dot-files/git-completion.sh
+source ~/dot-files/ruby_identifier.sh
+
+PS1='\n\[\e[32;1m\]\W\[\e[0m\]\[\e[30m\] ($(__git_ps1 "%s, ")$(echo $RUBY_VERSION)) \n\[\e[36m\]⚡ \[\e[0m\]'
+
[[ -s $HOME/.pythonbrew/etc/bashrc ]] && source $HOME/.pythonbrew/etc/bashrc
[[ -s $HOME/.rvm/scripts/rvm ]] && source $HOME/.rvm/scripts/rvm
-[[ -s $HOME/dot-files/.bash_pants ]] && source $HOME/dot-files/.bash_pants
+export PATH=/usr/local/bin:/usr/local/sbin:$PATH
export PATH=$PATH:$HOME/bin
-export JAVA_HOME="/System/Library/Frameworks/JavaVM.framework/Home"
+
# Emacs
-alias emacs="/usr/local/Cellar/emacs/HEAD/Emacs.app/Contents/MacOS/Emacs -nw"
-alias em="/usr/local/bin/emacsclient -t"
+export PATH=$PATH:/usr/local/Cellar/emacs/24.1/bin
+alias emacs="/usr/local/Cellar/emacs/24.1/Emacs.app/Contents/MacOS/Emacs -nw"
+alias em="/usr/local/Cellar/emacs/24.1/bin/emacsclient -t"
+# Java and JUBY
+export JAVA_OPTS="-Xms1024m -Xmx1024m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djboss.modules.system.pkgs=$JBOSS_MODULES_SYSTEM_PKGS -Djava.awt.headless=true -Djboss.server.default.config=standalone.xml"
+
+export JAVA_HOME="/System/Library/Frameworks/JavaVM.framework/Home"
+
+alias jr="jruby -S"
+alias jrh="jruby -J-Xmx1024m -S"
# Rails
alias be="bundle exec"
alias rg="rails g"
alias rgmo="rails g model"
alias rgco="rails g controller"
-alias rgmi="rails g migration"
+alias rgmi="rails g migration"
+
+alias gl="git lg"
+alias gs="git status -sb"
+alias gp="git push"
+alias gu="git pull"
+
+alias pg_start="pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start"
+alias pg_stop="pg_ctl -D /usr/local/var/postgres stop -s -m fast"
Please sign in to comment.
Something went wrong with that request. Please try again.