-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
45 lines (31 loc) · 923 Bytes
/
.zshrc
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
43
44
# Source this file in your ~/.zhsrc and you will get all dotfiles
# Source aliases
. ~/dotfiles/.zsh_aliases
## Variables ##
export CLICOLOR=1
export EDITOR=vim
## Paths ##
# Add homebrew to path
eval "$(/opt/homebrew/bin/brew shellenv)"
## Load tools ##
# Load asdf
. "$HOME/.asdf/asdf.sh"
# Add asdf completion
# append completions to fpath
fpath=(${ASDF_DIR}/completions $fpath)
# initialise completions with ZSH's compinit
autoload -Uz compinit && compinit
## Show current branch in prompt ##
# Enabling and setting git info var to be used in prompt config.
autoload -Uz vcs_info
zstyle ':vcs_info:*' enable git svn
# This line obtains information from the vcs.
zstyle ':vcs_info:git*' formats "git:(%b) "
precmd() {
vcs_info
}
# Enable substitution in the prompt.
setopt prompt_subst
# Config for the prompt. PS1 synonym.
prompt='%1/ ${vcs_info_msg_0_}> '
# TODO: Add wezterm config in dotfiles too?