Permalink
Browse files

fix bug in fasd init

since we're sourcing this as a plugin, which loads the function, it's
counterproductive to also define the 'fasd' alias

moving the about-plugin metadata into the case block makes this script
safe for execution even if composure metadata isn't exported and
available

rename fasd.bash to fasd.plugin.bash to bring it inline with the other
plugin scripts
  • Loading branch information...
1 parent f3d4469 commit 65ea1e9f1065f5e09ed93c4b1598492ec5252717 @erichs committed May 13, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 plugins/available/{fasd.bash → fasd.plugin.bash}
@@ -584,7 +584,8 @@ fasd [-A|-D] [paths ...]
fasd --init env
case $- in
- *i*) alias fasd=$BASH_IT'/plugins/enabled/fasd.bash'
+ *i*) cite about-plugin
+ about-plugin 'navigate "frecently" used files and directories'
eval "$(fasd --init auto)"
;;
*) # assume being executed as an executable

0 comments on commit 65ea1e9

Please sign in to comment.