diff --git a/playbooks/roles/rust/tasks/main.yml b/playbooks/roles/rust/tasks/main.yml index f30b93b..b225c7d 100644 --- a/playbooks/roles/rust/tasks/main.yml +++ b/playbooks/roles/rust/tasks/main.yml @@ -104,3 +104,10 @@ creates: ~/.cargo/bin/silicon when: - rust_extras == true + +- name: Install zoxide + shell: ~/.cargo/bin/cargo install zoxide + args: + creates: ~/.cargo/bin/zoxide + when: + - rust_extras == true diff --git a/zsh/funcs/zoxide b/zsh/funcs/zoxide new file mode 100644 index 0000000..a1eafa8 --- /dev/null +++ b/zsh/funcs/zoxide @@ -0,0 +1,4 @@ +if [[ -x ~/.cargo/bin/zoxide ]]; then + eval "$(zoxide init zsh)" + alias cd='z' +fi