From 86d5b40c238ea56ba7c884b0a8d829d4ad90b3b3 Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Sun, 3 Mar 2024 10:59:23 +0100 Subject: zoxide --- bash/99-zoxide.bash | 5 +++++ config.default | 3 +++ 2 files changed, 8 insertions(+) create mode 100644 bash/99-zoxide.bash 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" -- cgit v1.2.3