summaryrefslogtreecommitdiff
path: root/.config/.bashrc
blob: b5407dc3b82b484df22a6a0690dbfb7b0eec4510 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# If not running interactively, don't do anything
[[ $- != *i* ]] && return

alias ls='ls --color=auto'
alias lt='ls -t'
alias l='ls -lha'

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

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

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

PATH="$HOME/dotfiles/scripts:$PATH"

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