aboutsummaryrefslogtreecommitdiff
path: root/bashrc
blob: 37b5519dde36c59213ca2c8ab35dbfb0c6806843 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# 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

if [[ -z "$DOTFILES_LOCATION" ]]
then
	DOTFILES_LOCATION=$(dirname $(readlink -f $HOME/.bashrc))
	export DOTFILES_LOCATION
fi

pathadd ${DOTFILES_LOCATION}/bin

source $DOTFILES_LOCATION/aliases

#exec xonsh