From 65ea1e9f1065f5e09ed93c4b1598492ec5252717 Mon Sep 17 00:00:00 2001 From: Erich Smith Date: Sat, 12 May 2012 21:04:19 -0400 Subject: [PATCH] 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 --- plugins/available/{fasd.bash => fasd.plugin.bash} | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) rename plugins/available/{fasd.bash => fasd.plugin.bash} (99%) diff --git a/plugins/available/fasd.bash b/plugins/available/fasd.plugin.bash similarity index 99% rename from plugins/available/fasd.bash rename to plugins/available/fasd.plugin.bash index 984f630..ee810e2 100755 --- a/plugins/available/fasd.bash +++ b/plugins/available/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 -- 2.17.1