dotfiles-server/.profile
2018-12-10 01:47:52 +01:00

20 lines
461 B
Bash

#!/usr/bin/env bash
# if running bash
if [ -n "$BASH_VERSION" ]; then
# source all the things
for file in ~/.{bashrc,bash_prompt,bash_aliases,private}; do
[ -r "$file" ] && [ -f "$file" ] && source "$file"
done;
unset file;
fi
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
# define CDPATHs which are autocompleted from when doing cd
export CDPATH=$CDPATH:~/code