Files
bash-it/lib/appearance.bash
Adam Karim 2a4e27cdba Updating README.
Fixing custom location for themes.
2016-11-29 09:55:13 -08:00

22 lines
556 B
Bash

#!/usr/bin/env bash
# colored grep
alias grep='grep --color=auto'
export GREP_COLOR='1;33'
# colored ls
export LSCOLORS='Gxfxcxdxdxegedabagacad'
if [[ -z "$CUSTOM_THEME_DIR" ]]; then
CUSTOM_THEME_DIR="${BASH_IT_CUSTOM:=${BASH_IT}/custom}/themes"
fi
# Load the theme
if [[ $BASH_IT_THEME ]]; then
if [[ -f "$CUSTOM_THEME_DIR/$BASH_IT_THEME/$BASH_IT_THEME.theme.bash" ]]; then
source "$CUSTOM_THEME_DIR/$BASH_IT_THEME/$BASH_IT_THEME.theme.bash"
else
source "$BASH_IT/themes/$BASH_IT_THEME/$BASH_IT_THEME.theme.bash"
fi
fi