# Fancy terminal helpers shared with Bash.
alias ls='eza --icons=always --group-directories-first --group'
alias c='copilot'
alias cp='copilot'

JARVIS_DIR="$HOME/Misc/Development/OpenJarvis"
alias jarvis='cd "$JARVIS_DIR" && uv run jarvis'

j() {
    (cd "$JARVIS_DIR" && uv run jarvis ask "$*")
}

jchat() {
    (cd "$JARVIS_DIR" && uv run jarvis chat)
}

ghcs() {
    copilot "Suggest a shell command for: $*"
}

ghce() {
    copilot "Explain this shell command: $*"
}

cpcmd() {
    copilot "Suggest a shell command for: $*"
}

cpexplain() {
    copilot "Explain this shell command: $*"
}

if [ -f "$HOME/.cargo/env" ]; then
    . "$HOME/.cargo/env"
    export PATH="$HOME/.cargo/bin:$PATH"
fi

export EDITOR=mg
export VISUAL=mg
