Skip to content

Commit 80ec74e

Browse files
committed
fix(doctor): skip shell integration hint for unknown shells
1 parent f595909 commit 80ec74e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/commands/doctor.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ cmd_doctor() {
130130
esac
131131
if [ -n "$_rc_file" ] && [ -f "$_rc_file" ] && grep -q 'git gtr init' "$_rc_file" 2>/dev/null; then
132132
echo "[OK] Shell integration: loaded (gtr cd available)"
133-
else
133+
elif [ -n "$_rc_file" ]; then
134134
local _init_hint
135135
if [ "$_shell_name" = "fish" ]; then
136136
_init_hint="git gtr init fish | source"

0 commit comments

Comments
 (0)