Recognize fasd when sourced

According to fasd README, fasd can be also used by sourcing it and not only by including it into path. This patch will ensure that fasd will be properly recognized, even when it is sourced and not included in path.
pull/785/head
Tomas Slusny 2016-09-07 10:17:40 +02:00 committed by GitHub
parent 0c24907b6e
commit 5c69d79810
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@ cite about-plugin
about-plugin 'initialize fasd (see https://github.com/clvv/fasd)' about-plugin 'initialize fasd (see https://github.com/clvv/fasd)'
__init_fasd() { __init_fasd() {
which fasd &> /dev/null command -v fasd &> /dev/null
if [ $? -eq 1 ]; then if [ $? -eq 1 ]; then
echo -e "You must install fasd before you can use this plugin" echo -e "You must install fasd before you can use this plugin"
echo -e "See: https://github.com/clvv/fasd" echo -e "See: https://github.com/clvv/fasd"