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

pathadd ${DOTFILES_LOCATION}/bin

source $DOTFILES_LOCATION/aliases

#exec xonsh