aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2024-03-03 10:59:23 +0100
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2024-03-03 10:59:23 +0100
commit86d5b40c238ea56ba7c884b0a8d829d4ad90b3b3 (patch)
tree7d0f1fb999e3edfa12b31b7df335238cf57b51cc
parent38f27b1f5713977c65f77115f8ec5160d3640d0f (diff)
downloaddotfiles-86d5b40c238ea56ba7c884b0a8d829d4ad90b3b3.tar.gz
zoxide
-rw-r--r--bash/99-zoxide.bash5
-rw-r--r--config.default3
2 files changed, 8 insertions, 0 deletions
diff --git a/bash/99-zoxide.bash b/bash/99-zoxide.bash
new file mode 100644
index 0000000..093fa67
--- /dev/null
+++ b/bash/99-zoxide.bash
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+if which zoxide > /dev/null 2>&1 && [ ! "$FORCE_NORMAL_CD" = "yes" ] ; then
+ eval "$(zoxide init bash --cmd cd)"
+fi
diff --git a/config.default b/config.default
index 617285b..a0117c7 100644
--- a/config.default
+++ b/config.default
@@ -28,3 +28,6 @@ WM_WM="sway"
# Set a name for the host. Can be hostname, can be something else.
SYSTEM_NAME=$(hostname)
+
+# ZOXIDE
+FORCE_NORMAL_CD="no"