summaryrefslogtreecommitdiff
path: root/.zshrc
blob: 401f8a0898f3d6d2775a3e505d79edf2ada71105 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Aliases
alias nano='micro'
alias ls='ls -Ga '

# Path alterations
eval "$(/opt/homebrew/bin/brew shellenv)"
export COWPATH="$HOME/.config/cows"
export PATH="$PATH:/Users/melodidey/.local/bin"

# Clippy command handler
command_not_found_handler() {
    echo "'$1' does not exist." | cowsay -f clippy >&2
    return 127
}

# Prompt
autoload -Uz vcs_info
zstyle ':vcs_info:*' enable git
zstyle ':vcs_info:git:*' check-for-changes true
zstyle ':vcs_info:git:*' stagedstr '*'
zstyle ':vcs_info:git:*' unstagedstr '*'
zstyle ':vcs_info:git:*' formats       ' %F{yellow}%b%u%c%f'
zstyle ':vcs_info:git:*' actionformats ' %F{yellow}%b|%a%u%c%f'
precmd() { vcs_info }
setopt PROMPT_SUBST
PROMPT='%B%F{cyan}%2~%f%b${vcs_info_msg_0_} %B%F{red}%%%f%b '

# Startup
fastfetch
echo ""
#fortune | cowsay