Tom 12 лет назад
Родитель
Сommit
1758718695
1 измененных файлов с 5 добавлено и 4 удалено
  1. 5 4
      .bashrc

+ 5 - 4
.bashrc

@@ -4,17 +4,18 @@ PS1="\[\e[1;32m\]\h:\W \u$\[\e[0m\] "
 # todo: rbenv
 
 # cool aliases bro
-
-alias start-ubuntu='/Applications/VMware\ Fusion.app/Contents/Library/vmrun -T fusion start ~/Documents/Virtual\ Machines.localized/Ubuntu\ Server.vmwarevm nogui && open smb://ubuntu/share'
-alias start-http='python -m SimpleHTTPServer'
+alias start-ubuntu=`locate vmrun`' -T fusion start ~/Documents/Virtual\ Machines.localized/Ubuntu\ Server.vmwarevm nogui && open smb://ubuntu/share'
 alias restart-sound="sudo kill -9 `ps ax|grep 'coreaudio[a-z]' |awk '{print $1}'`"
+alias start-http='python -m SimpleHTTPServer'
 
 alias git-fancy-log="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(cyan)<%an>%Creset' --abbrev-commit --date=relative"
 alias git-timesheet='git log --pretty=format:"%C(yellow)%h%Creset  %C(green)%ad%Creset  %C(cyan)%s" --author="`git config --get user.name`" --since='6am''
 
-alias production='export RAILS_ENV=production'
+alias production='export RAILS_ENV=production' && echo "Rails: $RAILS_ENV"
+alias development='export RAILS_ENV=development' && echo "Rails: $RAILS_ENV"
 
 # some more ls aliases from ubuntu
+eval `dircolors`
 alias ll='ls -alF'
 alias la='ls -A'
 alias l='ls -CF'