aboutsummaryrefslogtreecommitdiff
path: root/.bashrc
blob: b56ffeb494e610b8c995d4529e3c60de2900d37f (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

export PATH=$PATH:~/.local/bin
export MANPATH=$MANPATH:~/.local/share/man
export XDG_RUNTIME_DIR=/tmp/runtime_$(whoami)
export VISUAL=vim
export EDITOR="$VISUAL"
export HISTSIZE=-1
export HISTFILESIZE=10000
export HISTCONTROL=ignoreboth:erasedups

mkdir -p $XDG_RUNTIME_DIR

alias ls='ls --color=auto'
alias grep='grep --color=auto'
alias gentag='ctags -R .'

# Coincidentally, nearly the exact prompt I wanted was on the Arch wiki...
GREEN="\[$(tput setaf 10)\]"
RESET="\[$(tput sgr0)\]"
PS1="${GREEN}\w${RESET}>"