Browse Source

Install better .bashrc for root

Matthias Vogelgesang 9 years ago
parent
commit
e94b7babfb
2 changed files with 11 additions and 0 deletions
  1. 8 0
      roles/common/files/bashrc
  2. 3 0
      roles/common/tasks/main.yml

+ 8 - 0
roles/common/files/bashrc

@@ -0,0 +1,8 @@
+# If not running interactively, don't do anything
+[ -z "$PS1" ] && return
+
+shopt -s cdspell
+shopt -s histappend
+
+bind '"\e[A":history-search-backward'
+bind '"\e[B":history-search-forward'

+ 3 - 0
roles/common/tasks/main.yml

@@ -23,3 +23,6 @@
 
 - name: refresh ufo-kit repo
   command: zypper --gpg-auto-import-keys ref repo-ufo-kit
+
+- name: set up a sane .bashrc
+  copy: src=bashrc dest=/root/.bashrc force=no