Skip to content

Commit

Permalink
rust: add cargo bin dir to PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
dezeroku committed Dec 29, 2023
1 parent 3548bf5 commit 9b1e64b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions roles/rust/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions roles/rust/templates/env.fish
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
set -x PATH $HOME/.cargo/bin $PATH

0 comments on commit 9b1e64b

Please sign in to comment.