Skip to content

Commit

Permalink
set a error message for autocomplete when fsconfig is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
Fuseteam committed Apr 1, 2022
1 parent d32d251 commit 76b70cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sshmount_autocomplete
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ _ssh()
COMPREPLY=( $(compgen -W "$(_parse_help $1)" -- ${cur}) );;
*)
if [ ! -f "$confile" ];
then COMPREPLY=( $(compgen -W "$(echo "please setup ${confile} first")" -- ${cur}) );
then COMPREPLY=( $(compgen -W "$(echo "missing ${confile}")" -- ${cur}) );
elif [ "${prev:0:1}" != "-" ];
then COMPREPLY=( $(compgen -W "$(getLocalDirs)" -- ${cur}) );
elif [ "${prev}" = "-w" ];
Expand Down

0 comments on commit 76b70cc

Please sign in to comment.