diff --git a/fish/.config/fish/functions/fastboot.fish b/fish/.config/fish/functions/fastboot.fish index e82faf7..34f82d6 100644 --- a/fish/.config/fish/functions/fastboot.fish +++ b/fish/.config/fish/functions/fastboot.fish @@ -1,3 +1,9 @@ function fastboot --wraps=fastboot.exe --description 'alias fastboot=fastboot.exe' - fastboot.exe $argv + if command -v fastboot >/dev/null + command fastboot $argv + else if command -v fastboot.exe >/dev/null + fastboot.exe $argv + else + echo "fastboot not found" + end end