fix bug in fasd init
authorErich Smith <heartquest@gmail.com>
Sun, 13 May 2012 01:04:19 +0000 (21:04 -0400)
committerErich Smith <heartquest@gmail.com>
Mon, 14 May 2012 00:56:34 +0000 (20:56 -0400)
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

plugins/available/fasd.plugin.bash [moved from plugins/available/fasd.bash with 99% similarity]

similarity index 99%
rename from plugins/available/fasd.bash
rename to plugins/available/fasd.plugin.bash
index 984f630..ee810e2 100755 (executable)
@@ -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