Skip to content

Commit e648902

Browse files
davidguttmanclaude
andauthored
Fix try interactive selector appearing on bashrc re-source (#4877)
`try init` defines a shell function named `try`. On subsequent `source ~/.bashrc`, `try init` calls the function (interactive selector) instead of the binary. Adding `command` bypasses the function and always calls the binary. Fixes #4876 Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent e1ee8e8 commit e648902

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

default/bash/init

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ if command -v zoxide &> /dev/null; then
1111
fi
1212

1313
if command -v try &> /dev/null; then
14-
eval "$(SHELL=/bin/bash try init ~/Work/tries)"
14+
eval "$(SHELL=/bin/bash command try init ~/Work/tries)"
1515
fi
1616

1717
if command -v fzf &> /dev/null; then

0 commit comments

Comments
 (0)