aboutsummaryrefslogtreecommitdiffstats
path: root/roles/users/files/esmil/bashrc_root
blob: 354ff57c736c8fcf546f7acac80d8ba72e9caed3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# 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
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'

# network
alias ip6='ip -6'

# 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'

stty -ixon
cd