aboutsummaryrefslogtreecommitdiffstats
path: root/roles/users/files/esmil/bashrc
diff options
context:
space:
mode:
Diffstat (limited to 'roles/users/files/esmil/bashrc')
-rw-r--r--roles/users/files/esmil/bashrc35
1 files changed, 35 insertions, 0 deletions
diff --git a/roles/users/files/esmil/bashrc b/roles/users/files/esmil/bashrc
new file mode 100644
index 0000000..39a2c53
--- /dev/null
+++ b/roles/users/files/esmil/bashrc
@@ -0,0 +1,35 @@
+# if not running interactively, don't do anything
+[[ $- != *i* ]] && return
+
+export PS1='\[\e[1;32m\]\u\[\e[00m\]@\[\e[0;32m\]\h\[\e[1;34m\]\w\[\e[00m\]\$ '
+unset PROMPT_COMMAND
+export -n PROMPT_COMMAND
+
+# directory listing
+if type dircolors > /dev/null 2>&1; then
+ eval "$(dircolors -b)"
+fi
+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'
+
+# pager
+export PAGER='less'
+export LESS='-FRXS'
+
+# systemd
+alias start='systemctl --user start'
+alias stop='systemctl --user stop'
+alias restart='systemctl --user restart'
+alias status='systemctl --user status'
+
+stty -ixon
+cd