Set up Ruby gems in home directory
This commit is contained in:
parent
36b912d5e1
commit
c99f94e68f
3 changed files with 6 additions and 0 deletions
1
roles/home-cli/files/gemrc
Normal file
1
roles/home-cli/files/gemrc
Normal file
|
@ -0,0 +1 @@
|
|||
gem: --user-install
|
|
@ -144,6 +144,7 @@ for dir in $HOME/.local/bin \
|
|||
/var/lib/snapd/snap/bin \
|
||||
$GOPATH/bin \
|
||||
$HOME/.cargo/bin \
|
||||
$HOME/.gem/ruby/*/bin \
|
||||
; do
|
||||
if [ -d "$dir" ]; then
|
||||
PATH="$PATH:$dir"
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
---
|
||||
- name: Copy .gemrc
|
||||
copy:
|
||||
src: gemrc
|
||||
dest: "{{ ansible_env.HOME }}/.gemrc"
|
||||
- name: Copy .gitconfig
|
||||
copy:
|
||||
src: gitconfig
|
||||
|
|
Loading…
Reference in a new issue