mirror of
https://github.com/roles-ansible/ansible_role_dotfiles.git
synced 2024-08-16 16:09:49 +02:00
Improve bashrc extra variables
This commit is contained in:
parent
dcb1137e3a
commit
3bc805c295
3 changed files with 7 additions and 1 deletions
4
defaults/main.yml
Normal file
4
defaults/main.yml
Normal file
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
|
||||
bash:
|
||||
bashrc: ''
|
|
@ -14,6 +14,8 @@ export PATH
|
|||
|
||||
PS1='$(if [[ $(id -u) -ne 0 ]];then echo "\[\033[01;33m\]"; else echo "\[\033[01;31m\]"; fi) $(if [[ $? == 0 ]]; then printf "\xE2\x9D\xA4"; fi) \[\033[01;32m\]\u\[\033[01;36m\]@\[\033[01;32m\]\H\[\033[01;34m\] <\A> \[\033[01;35m\] \j \[\033[01;36m\] \w \[\033[01;33m\]\n\[\033[01;33m\] $(git branch 2>/dev/null | sed -n "s/* \(.*\)/\1 /p")$\[\033[01;00m\] '
|
||||
|
||||
{{ bash.bashrc }}
|
||||
|
||||
# User specific aliases and functions
|
||||
alias ll="ls -all"
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
mode: 'u=rw,g=r,o=r'
|
||||
|
||||
- name: Copy bashrc configuration to admin users
|
||||
copy:
|
||||
template:
|
||||
src: 'files/bashrc'
|
||||
dest: '/home/{{ item }}/.bashrc'
|
||||
owner: '{{ item }}'
|
||||
|
|
Loading…
Reference in a new issue