summaryrefslogtreecommitdiff
path: root/.config/.bashrc
blob: 6ca0e5c254e0bad3b89357e148f6304557ee4cb0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# .bashrc

# If not running interactively, don't do anything
[[ $- != *i* ]] && return

alias ls='ls --color=auto'
alias ll='ls -lh'
alias l='ls -lha'

PURPLE="\[$(tput setaf 5)\]"
RESET="\[$(tput sgr0)\]"

PS1="[\u@${PURPLE}\h${RESET} \w]\n> "
PS2=">> "

# export XDG_RUNTIME_DIR=/run/user/$(id -u)

if [ -d "$HOME/.local/bin" ] ; then
    PATH="$HOME/.local/bin:$PATH"
fi

if [[ -z $DISPLAY ]] && [[ $(tty) = "/dev/tty1" ]]; then
  exec startx &> /dev/null
fi