From 9b1e64b632051e2dbe5944b61e4614bc9738e7f8 Mon Sep 17 00:00:00 2001 From: dezeroku Date: Fri, 29 Dec 2023 01:34:10 +0100 Subject: [PATCH] rust: add cargo bin dir to PATH --- roles/rust/tasks/main.yml | 7 +++++++ roles/rust/templates/env.fish | 1 + 2 files changed, 8 insertions(+) create mode 100644 roles/rust/templates/env.fish diff --git a/roles/rust/tasks/main.yml b/roles/rust/tasks/main.yml index 8a89ca0..f254548 100644 --- a/roles/rust/tasks/main.yml +++ b/roles/rust/tasks/main.yml @@ -29,3 +29,10 @@ register: rustup_rls_install when: rust_install_toolchain and rust_install_rls changed_when: ("is up to date" not in rustup_rls_install.stderr) + +- name: Template fish plugin + ansible.builtin.include_role: + name: helper_fish_plugin + vars: + helper_fish_plugin_directory_name: rust + helper_fish_plugin_template_name: env.fish diff --git a/roles/rust/templates/env.fish b/roles/rust/templates/env.fish new file mode 100644 index 0000000..942627b --- /dev/null +++ b/roles/rust/templates/env.fish @@ -0,0 +1 @@ +set -x PATH $HOME/.cargo/bin $PATH