Permalink
Browse files

cd blank is default to cd ~

  • Loading branch information...
1 parent faff2b6 commit 6922ac0e403a7cc462a8fd0914d9b9c087f402a3 @gonsie committed Jul 25, 2012
Showing with 6 additions and 2 deletions.
  1. +6 −2 bashmarks.sh
View
@@ -52,8 +52,12 @@ function s {
# jump to bookmark
function c {
check_help $1
- source $SDIRS
- cd "$(eval $(echo echo $(echo \$DIR_$1)))"
+ if [ -z "$1" ]; then
+ cd ~
+ else
+ source $SDIRS
+ cd "$(eval $(echo echo $(echo \$DIR_$1)))"
+ fi
}
# print bookmark

0 comments on commit 6922ac0

Please sign in to comment.