Permalink
Browse files

Merge pull request #1 from tomasz/alias-cd-dash

Alias `cd -` as `-` without resorting to a function
  • Loading branch information...
2 parents 685d751 + 16dcc3d commit e94325471c23ecb3fcea4023424bd6d30b2a0069 @jstepien committed Apr 2, 2012
Showing with 1 addition and 5 deletions.
  1. +0 −5 .bashrc
  2. +1 −0 .profile
View
@@ -27,9 +27,4 @@ function svn {
fi
}
-# Because `alias -='cd -' doesn't work.
--() {
- cd -
-}
-
test -f /etc/bash_completion && source /etc/bash_completion
View
@@ -35,6 +35,7 @@ alias mem="ps x -o rss= | xargs | sed 's/ /\+/g' | bc"
alias pryr='pry -I. -r config/environment'
alias o=xdg-open
alias ..='cd ..'
+alias -- -='cd -'
# Git!
alias gst='git status -s -b'

0 comments on commit e943254

Please sign in to comment.