-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
40 lines (33 loc) · 972 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
# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=1000
SAVEHIST=1000
bindkey -e
# End of lines configured by zsh-newuser-install
# Git and Autocomplete
autoload -Uz compinit && compinit
autoload -Uz vcs_info
precmd_vcs_info() { vcs_info }
precmd_functions+=( precmd_vcs_info )
zstyle ':vcs_info:git:*' formats '%b'
setopt prompt_subst
# Prompt and fetch on new shell
PROMPT=' '%5~%F{172}' %B❖%b '%f
RPROMPT='${vcs_info_msg_0_}'
fastfetch
# Aliases
alias gpf='git push --force-with-lease'
alias glo='git log --pretty="oneline"'
alias vim='nvim'
alias cat='bat'
# Asdf post-install
. "$HOME/.asdf/asdf.sh"
# Golang setup with ASDF
GOLANG_SET_ENV=~/.asdf/plugins/golang/set-env.zsh
if [ -f $GOLANG_SET_ENV ]; then
. ~/.asdf/plugins/golang/set-env.zsh
fi
export GOPATH=$HOME/go
export ASDF_GOLANG_MOD_VERSION_ENABLED=false
export PATH=$HOME/.local/bin:/usr/local/opt/llvm/bin:$PATH:$GOROOT/bin:$GOPATH/bin
export _JAVA_AWT_WM_NONREPARENTING=1