Permalink
Browse files

Add alias to look up your IP address. Add Vim filetype for .ru files

  • Loading branch information...
1 parent 145f1bf commit 964ac9227968c6f2b9557bbcf86cf31073cc079f @marceldegraaf committed Aug 8, 2011
Showing with 5 additions and 2 deletions.
  1. +4 −2 .aliases.sh
  2. +1 −0 .vimrc
View
6 .aliases.sh
@@ -27,8 +27,7 @@ alias smate='svn diff | mate && svn ci'
alias sadd="sst | grep '?' | cut -c5- | xargs svn add"
# editing shortcuts
-alias m='mvim --remote-silent'
-alias e='emacs'
+alias m='mvim'
alias erc='e /etc/bashrc'
alias newrc='. /etc/bashrc'
alias rsync_nosvn="rsync --exclude=.svn -r "
@@ -72,3 +71,6 @@ alias h?="history | grep "
# display battery info on your Mac
# see http://blog.justingreer.com/post/45839440/a-tale-of-two-batteries
alias battery='ioreg -w0 -l | grep Capacity | cut -d " " -f 17-50'
+
+# What is my IP address?
+alias ip="curl -L -s --max-time 10 http://ip.appspot.com | egrep -o -m 1 '([[:digit:]]{1,3}\.){3}[[:digit:]]{1,3}'"
View
1 .vimrc
@@ -19,6 +19,7 @@ augroup filetypedetect
au! BufRead,BufNewFile Gemfile setfiletype ruby
au! BufRead,BufNewFile *.god setfiletype ruby
au! BufRead,BufNewFile *.rabl setfiletype ruby
+ au! BufRead,BufNewFile *.ru setfiletype ruby
autocmd BufNewFile,BufRead *.yml setf eruby
augroup END

0 comments on commit 964ac92

Please sign in to comment.