summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xarchsetup1
-rw-r--r--dotfiles/system/.profile.d/zoxide.sh11
2 files changed, 12 insertions, 0 deletions
diff --git a/archsetup b/archsetup
index 788d897..2cbd767 100755
--- a/archsetup
+++ b/archsetup
@@ -765,6 +765,7 @@ developer_workstation () {
pacman_install meld # Visual diff
pacman_install ripgrep # Fast grep utility
aur_install the_silver_searcher # Another fast grep utility
+ pacman_install zoxide # Smart cd command that learns your habits
action="Programming Editors" && display "subtitle" "$action"
pacman_install mg # mini emacs
diff --git a/dotfiles/system/.profile.d/zoxide.sh b/dotfiles/system/.profile.d/zoxide.sh
new file mode 100644
index 0000000..a748043
--- /dev/null
+++ b/dotfiles/system/.profile.d/zoxide.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+# zoxide.sh
+# Craig Jennings <c@cjennings.net>
+# zoxide initialization, sourced by .profile
+
+# Initialize zoxide for zsh
+eval "$(zoxide init zsh)"
+
+# Alias cd to use zoxide
+alias cd="z"