if [[ -o interactive ]]; then
    if [[ -z "$TMUX" ]]; then
        tmux new-session -A -s 0
    fi
fi

bindkey -e
bindkey "^[[1;5C" forward-word
bindkey "^[[1;5D" backward-word
bindkey '^H' backward-kill-word

source $ZDOTDIR/setup-history.zsh
source $ZDOTDIR/prompts/simple-two-line.zsh
source $ZDOTDIR/functions.zsh
source $ZDOTDIR/plugins.zsh
source $ZDOTDIR/theme.zsh

if [[ $(uname) == "Darwin" ]]; then
    eval "$(/opt/homebrew/bin/brew shellenv)"
fi

eval "$(atuin init zsh --disable-up-arrow)"

eval "$(starship init zsh)"
