From 06a76f8b2872519b57d9b4ea5c5d2fcc03bfbe52 Mon Sep 17 00:00:00 2001 From: L3D Date: Sun, 18 Nov 2018 23:46:40 +0100 Subject: [PATCH] Improve bash dotfile --- README.md | 17 ++++++++++++++--- defaults/main.yml | 2 -- files/bash.bashrc | 16 ++++++++++++++++ 3 files changed, 30 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 93de7ef..a8723f3 100644 --- a/README.md +++ b/README.md @@ -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"' +``` + diff --git a/defaults/main.yml b/defaults/main.yml index c8d73a0..729ddbf 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -1,6 +1,4 @@ --- -admins: - - l3d bash: bashrc: '' diff --git a/files/bash.bashrc b/files/bash.bashrc index d20e9dc..1302adb 100644 --- a/files/bash.bashrc +++ b/files/bash.bashrc @@ -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