summaryrefslogtreecommitdiff
path: root/dot_local
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--dot_local/share/sh/zoxide1
-rw-r--r--dot_local/share/sh/zoxide.bash1
-rw-r--r--dot_local/share/sh/zoxide.fish3
3 files changed, 5 insertions, 0 deletions
diff --git a/dot_local/share/sh/zoxide b/dot_local/share/sh/zoxide
index 210db16..a89202c 100644
--- a/dot_local/share/sh/zoxide
+++ b/dot_local/share/sh/zoxide
@@ -1,2 +1,3 @@
. hascmd zoxide || return
eval "$(zoxide init posix --hook prompt)"
+alias cd=z
diff --git a/dot_local/share/sh/zoxide.bash b/dot_local/share/sh/zoxide.bash
index 6a02524..b3ab493 100644
--- a/dot_local/share/sh/zoxide.bash
+++ b/dot_local/share/sh/zoxide.bash
@@ -1,2 +1,3 @@
. hascmd zoxide || return
eval "$(zoxide init bash)"
+alias cd=z
diff --git a/dot_local/share/sh/zoxide.fish b/dot_local/share/sh/zoxide.fish
index b62450c..6c97910 100644
--- a/dot_local/share/sh/zoxide.fish
+++ b/dot_local/share/sh/zoxide.fish
@@ -1,2 +1,5 @@
. hascmd zoxide || return
zoxide init fish | source
+function cd --wraps=z --description 'alias cd=z'
+ z $argv
+end