-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.zsh_profile
41 lines (34 loc) · 1.35 KB
/
.zsh_profile
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
VIM=nvim
cdpath=($HOME/Developer/zahlz/repos/backend $HOME/Developer/q1/repos $HOME/Developer/zahlz/repos/mobile $HOME/Developer/repos)
# Global Exports
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
export ERL_AFLAGS="-kernel shell_history enabled -kernel shell_history_file_bytes 2097152"
export PATH=/Users/kevin/.local/bin:$PATH
export PATH=/opt/homebrew/bin:$PATH
export PATH=/Users/kevin/Developer/flutter/bin:$PATH # Flutter
export PATH="$PATH":"$HOME/.pub-cache/bin"
# ASDF for version management
. $HOME/.asdf/asdf.sh
# Aliases
alias vim=nvim
alias zshr="source ~/.zshrc"
alias vimc="cd $HOME/.config/nvim/lua/moogle && nvim init.lua"
alias derived_clean="rm -rf $HOME/Library/Developer/Xcode/DerivedData/"
alias weather="curl wttr.in/Georgsmarienhuette"
# append completions to fpath
fpath=(${ASDF_DIR}/completions $fpath)
# initialise completions with ZSH's compinit
autoload -Uz compinit && compinit
# VCS
autoload -Uz vcs_info
precmd_vcs_info() { vcs_info }
precmd_functions+=( precmd_vcs_info )
setopt prompt_subst
zstyle ':vcs_info:git:*' formats '%F{250}(%b%u%c)%f '
zstyle ':vcs_info:*' enable git
zstyle ':vcs_info:*' check-for-changes true
zstyle ':vcs_info:*' unstagedstr ' %{%F{red}%B%}●%{%b%f%}'
zstyle ':vcs_info:*' stagedstr ' %{%F{green}%B%}●%{%b%f%}'
# Prompt
PROMPT='%B%F{blue}%1~%f%b ${vcs_info_msg_0_}%(?.%F{green}%#.%F{red}[💥%?] %#)%f '