From ae254b596f6e12601e0f6b206d09b87e5a9b480d Mon Sep 17 00:00:00 2001
From: Emil Renner Berthing <esmil@labitat.dk>
Date: Wed, 26 Sep 2018 11:46:03 +0200
Subject: users: merge root_env into this role

---
 roles/users/templates/root/bashrc.sh.j2 | 34 +++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)
 create mode 100644 roles/users/templates/root/bashrc.sh.j2

(limited to 'roles/users/templates/root')

diff --git a/roles/users/templates/root/bashrc.sh.j2 b/roles/users/templates/root/bashrc.sh.j2
new file mode 100644
index 0000000..bcc4ddb
--- /dev/null
+++ b/roles/users/templates/root/bashrc.sh.j2
@@ -0,0 +1,34 @@
+# if not running interactively, don't do anything
+[[ $- != *i* ]] && return
+
+export PS1='\[\e[1;31m\]\u\[\e[00m\]@\[\e[0;31m\]\h\[\e[1;34m\]\w\[\e[00m\]\$ '
+unset PROMPT_COMMAND
+
+# directory listing
+eval "$(dircolors -b)"
+alias ls='ls --color=auto -F'
+alias ll='ls -Ahl'
+
+# some more alias to avoid making mistakes:
+alias rm='rm -ri'
+alias cp='cp -rid'
+alias mv='mv -i'
+
+# editor
+export EDITOR='vim'
+alias vi='vim'
+
+# network
+alias ip6='ip -6'
+{% if ansible_service_mgr == 'systemd' %}
+
+# systemd
+alias start='systemctl start'
+alias stop='systemctl stop'
+alias restart='systemctl restart'
+alias status='systemctl status'
+alias cgls='systemd-cgls'
+alias cgtop='systemd-cgtop'
+{% endif %}
+
+cd
-- 
cgit v1.2.1