feat(shell): create cached-eval helper to improve shell startup speed.

This commit is contained in:
2024-05-18 01:13:18 +01:00
parent 6858f50757
commit 6f720ba985
3 changed files with 130 additions and 57 deletions

View File

@@ -3,7 +3,7 @@
#
if command-exists zoxide; then
eval "$(zoxide init --cmd zox zsh)"
cached-eval "$(command -v zoxide)" zoxide init --cmd zox zsh
# Use functions to allow regular zsh completion for cd to work.
cd() { __zoxide_z "$@"; }