Closed higidi closed 5 years ago
@higidi, good idea. I think that zsh_fzf_path
should be configurable easily without edit vars/main.yml:
zsh_fzf_path
should placed in default.ymlzsh_fzf_path
can be redefined in runtimezsh_path
should use zsh_fzf_path
$HOME/bin
is more common path that $HOME/.bin
Please, check my fixes: https://github.com/viasite-ansible/ansible-role-zsh/commit/5b9ab7aa3e94e815473adab684e612e45ed9ce9e
Are you agreed?
I will check tests and other pull requests in few days.
@popstas
zsh_fzf_path
within the default yaml, i decided to put it into the vars file because of all other pathes were already placed there. One thing i don't understand is, why you hard overwrite the variable if you use the role in shared scenarios (zsh_shared
: yes
). Can you explain it to me?.bin
or bin
is fine for me, i preffer .bin
because its not shown in the default directory listing, but both is ok for me.All other changes in 5b9ab7a are fine for me.
vars.yml contains only computed variables that user should not want to change. If I prefer ~/bin and you prefer ~/.bin, we should add option to override variable without role fork.
I override variable in runtime mostly for backward compatibility. Another solution: add one more variable zsh_fzf_path_shared
.
Personally, I have servers with 10-50 users with zsh_shared configs and root with personal config.
Future plan:
zsh_fzf_path_shared
and fix tests later todayIt's fine for you?
No, please don't add a variable to set this to .bin
or bin
. I'm sure i will arrange with that.
All other plans are fine for me.
Closed.
… otherwise it should be installed in local user home