aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"