blob: dd4c5587492ce096c3f010e9a3895dcc85922f4f (
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
32
33
34
35
36
37
38
39
40
41
42
|
# Aliases
alias nano='micro'
alias fastfetch='fastfetch --logo nixos'
alias ls='ls -Ga '
alias jaeger='docker run -d --name jaeger \
-p 16686:16686 \
-p 4317:4317 \
-p 4318:4318 \
-p 5778:5778 \
-p 9411:9411 \
cr.jaegertracing.io/jaegertracing/jaeger:2.20.0
'
# Path alterations
eval "$(/opt/homebrew/bin/brew shellenv)"
export COWPATH="$HOME/.config/cows"
export PATH="$PATH:$HOME/.local/bin"
export PATH="$PATH:$HOME/.dotnet/tools"
# 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
|