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
parent
0c24907b6e
commit
5c69d79810
|
|
@ -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"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue