From b275ec50be6d2156cb25c8ec7f194068ae78afb7 Mon Sep 17 00:00:00 2001 From: innerviewer Date: Wed, 22 Apr 2026 14:02:53 +0200 Subject: [PATCH] (Bash) Add lazy initialization of `try` command. (#5179) * (Bash) Add lazy initialization of `try` and `mise` commands. * (Bash) Removed lazy-loading for `mise` --- default/bash/init | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/default/bash/init b/default/bash/init index 2d363fa7..d2baba50 100644 --- a/default/bash/init +++ b/default/bash/init @@ -11,7 +11,11 @@ if command -v zoxide &> /dev/null; then fi if command -v try &> /dev/null; then - eval "$(SHELL=/bin/bash command try init ~/Work/tries)" + try() { + unset -f try + eval "$(SHELL=/bin/bash command try init ~/Work/tries)" + try "$@" + } fi if command -v fzf &> /dev/null; then