(Bash) Add lazy initialization of try command. (#5179)
* (Bash) Add lazy initialization of `try` and `mise` commands. * (Bash) Removed lazy-loading for `mise`
This commit is contained in:
+5
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user