2016-10-13 11:23:41 +02:00
|
|
|
# If not running interactively, don't do anything
|
|
|
|
[[ $- != *i* ]] && return
|
|
|
|
|
|
|
|
## Shell-independant code: everything we set here must be exported before we run
|
|
|
|
## our favorite shell.
|
|
|
|
|
|
|
|
## Enable color support of ls.
|
|
|
|
if [ "$TERM" != "dumb" ]; then
|
|
|
|
if [ "$OSTYPE" = "linux-gnu" ]; then
|
2016-10-16 04:44:13 +02:00
|
|
|
eval "$(dircolors "$HOME/.dircolorsdb")"
|
2016-10-13 11:23:41 +02:00
|
|
|
else
|
|
|
|
export LSCOLORS="Ex"
|
|
|
|
# export LSCOLORS="ExfxcxDxCxdxdxCxCxECEh"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
for shell in fish zsh; do
|
|
|
|
command -v $shell >/dev/null 2>&1 && exec $shell
|
|
|
|
done
|