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

pathadd() {
	if [ -d "$1" ] && [[ "$PATH" != *"$1"* ]]; then
		PATH=$PATH":$1"
	fi
}

pathadd ${HOME}/.local/bin

DOTFILES_LOCATION=$(dirname $(readlink -f $HOME/.bashrc))
export DOTFILES_LOCATION

source $DOTFILES_LOCATION/aliases

#exec xonsh