dotfiles/home/profile

25 lines
453 B
Bash

## .profile
# dotfiles locations
DOTFILES_HOME_DIR="$(cd -P "$(dirname "$(readlink ~/.profile)")" && pwd)"
DOTFILES_ROOT_DIR="$( dirname "$DOTFILES_HOME_DIR" )"
DOTFILES_ZSH_DIR="$DOTFILES_ROOT_DIR/zsh"
DOTFILES_BASH_DIR="$DOTFILES_ROOT_DIR/bash"
# utility functions
path_append () {
PATH="$PATH:$1"
}
path_prepend () {
PATH="$1:$PATH"
}
# load all shell files
for file in ~/.dotfiles/shell/*; do
. $file
done
export PATH
# vim: ft=sh