BASE16_SHELL="$HOME/.config/dotfiles/shell/vendor/base16-shell/"
[ -n "$PS1" ] && [ -s "$BASE16_SHELL/profile_helper.sh" ] && eval "$("$BASE16_SHELL"/profile_helper.sh)"
if [[ -z "$SSH_CONNECTION" ]]; then
  base16_solarized-dark
fi

if [[ "$BASE16_THEME" == "base16-*" ]]; then
  export BASE16_THEME="$(echo "$BASE16_THEME" | grep --extended-regexp --only '^base16-(.*)$')"
fi
BASE16_SHELL="$HOME/.config/dotfiles/shell/vendor/base16-shell/"
[ -n "$PS1" ] && [ -s "$BASE16_SHELL/profile_helper.sh" ] && eval "$("$BASE16_SHELL"/profile_helper.sh)"
if [[ -z "$SSH_CONNECTION" ]]; then
  base16_solarized-dark
fi

Fix BASE16_THEME in a nested shell
shell: Fix BASE16_THEME in a nested shell

Base16 expects BASE16_THEME to not include a 'base16-' prefix, however,
it then resets it to prepend that, so when running a nested subshell
without explicitly setting the theme, we must remove the prefix. For
simplicity, always remove the prefix when starting a shell.
