feat: gracefully fallback when integration dependencies are not met
If a dependency for an integration is missing, fallback gracefully so as not to interrupt user experience
This commit is contained in:
@@ -103,6 +103,8 @@ See [FZF Bindings](#fzf-bindings) under Key Bindings for the default FZF shortcu
|
|||||||
|
|
||||||
## Integrations
|
## Integrations
|
||||||
|
|
||||||
|
> **Note:** All integrations listed below are designed to elegantly fallback to basic commands or safely ignore their configuration if their required external dependencies are not installed on the system.
|
||||||
|
|
||||||
### Zoxide
|
### Zoxide
|
||||||
|
|
||||||
Smart `cd` replacement. `cd` (or `z`) `<keyword>` jumps to the best frecency match; `cdi` (or `zi`) opens an interactive selector.
|
Smart `cd` replacement. `cd` (or `z`) `<keyword>` jumps to the best frecency match; `cdi` (or `zi`) opens an interactive selector.
|
||||||
|
|||||||
@@ -14,6 +14,10 @@
|
|||||||
|
|
||||||
# fish completion for tailscale -*- shell-script -*-
|
# fish completion for tailscale -*- shell-script -*-
|
||||||
|
|
||||||
|
if not type -q tailscale
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
function __tailscale_debug
|
function __tailscale_debug
|
||||||
set -l file "$BASH_COMP_DEBUG_FILE"
|
set -l file "$BASH_COMP_DEBUG_FILE"
|
||||||
if test -n "$file"
|
if test -n "$file"
|
||||||
|
|||||||
@@ -29,7 +29,6 @@ function __register_wakatime_fish_before_exec -e fish_postexec
|
|||||||
else if type -p ~/.wakatime/wakatime-cli 2>&1 > /dev/null
|
else if type -p ~/.wakatime/wakatime-cli 2>&1 > /dev/null
|
||||||
set wakatime_path (type -p ~/.wakatime/wakatime-cli)
|
set wakatime_path (type -p ~/.wakatime/wakatime-cli)
|
||||||
else
|
else
|
||||||
echo "wakatime command not found. Please read \"https://wakatime.com/terminal\" and install wakatime."
|
|
||||||
return 1
|
return 1
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,13 @@
|
|||||||
# =============================================================================
|
# =============================================================================
|
||||||
#
|
#
|
||||||
|
#
|
||||||
# Utility functions for zoxide.
|
# Utility functions for zoxide.
|
||||||
#
|
#
|
||||||
|
|
||||||
|
if not type -q zoxide
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
# pwd based on the value of _ZO_RESOLVE_SYMLINKS.
|
# pwd based on the value of _ZO_RESOLVE_SYMLINKS.
|
||||||
function __zoxide_pwd
|
function __zoxide_pwd
|
||||||
builtin pwd -L
|
builtin pwd -L
|
||||||
|
|||||||
+3
-1
@@ -81,7 +81,9 @@ set -Ux FZF_DEFAULT_OPTS "\
|
|||||||
#
|
#
|
||||||
# The Auto-Venv script above will ignore directories with a
|
# The Auto-Venv script above will ignore directories with a
|
||||||
# .envrc file (direnv configuration) to prevent conflicts.
|
# .envrc file (direnv configuration) to prevent conflicts.
|
||||||
direnv hook fish | source
|
if type -q direnv
|
||||||
|
direnv hook fish | source
|
||||||
|
end
|
||||||
|
|
||||||
# ────────────────────────────── Auto-Venv ───────────────────────────────
|
# ────────────────────────────── Auto-Venv ───────────────────────────────
|
||||||
# Auto-activate Python venv on directory change
|
# Auto-activate Python venv on directory change
|
||||||
|
|||||||
Reference in New Issue
Block a user