1
0
Fork 0
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:
L3D 2018-11-15 15:04:18 +01:00
parent dcb1137e3a
commit 3bc805c295
No known key found for this signature in database
GPG key ID: 2AC13F35B22B3962
3 changed files with 7 additions and 1 deletions

4
defaults/main.yml Normal file
View file

@ -0,0 +1,4 @@
---
bash:
bashrc: ''

View file

@ -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"

View file

@ -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 }}'