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 bash dotfile

This commit is contained in:
L3D 2018-11-18 23:46:40 +01:00
parent f22e4b7139
commit 06a76f8b28
Signed by: l3d
GPG key ID: CD08445BFF4313D1
3 changed files with 30 additions and 5 deletions

View file

@ -1,5 +1,6 @@
# role_dotfiles
Ansible role to deploy some dotfiles
dotfiles
==========
Ansible role to deploy some dotfiles which may be useful
Affected files:
```ini
@ -7,9 +8,19 @@ Affected files:
.bashrc
.vimrc
```
needed vars:
needed vars:
---------------
```ini
# list all admins
admins:
- l3d
```
Optional config:
-----------------
```ini
# optional .bashrc commands
bash:
bashrc: 'alias l="ls -all"'
```

View file

@ -1,6 +1,4 @@
---
admins:
- l3d
bash:
bashrc: ''

View file

@ -95,4 +95,20 @@ if [ -z "$BASHRCSOURCED" ]; then
fi
fi
alias ls='ls --color=auto'
alias dir='dir --color=auto'
alias vdir='vdir --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
# colored GCC warnings and errors
export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
# some more ls aliases
alias ll='ls -la'
alias la='ls -A'
alias l='ls -CF'
# vim:ts=4:sw=4