diff --git a/xontrib/fstrider.py b/xontrib/fstrider.py index f912df6..873acac 100644 --- a/xontrib/fstrider.py +++ b/xontrib/fstrider.py @@ -1,7 +1,10 @@ """Xontrib for Strider.""" import fstrider as _fstrider +from shutil import which as _which -@aliases.register("fs") +_cmd = "fstrider" if _which("fs") else "fs" + +@aliases.register(_cmd) def _alias_strider(args): - _fstrider.main(args) \ No newline at end of file + _fstrider.main(args)