-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
39 lines (32 loc) · 917 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
if type brew &>/dev/null
then
FPATH="$(brew --prefix)/share/zsh/site-functions:${FPATH}"
autoload -Uz compinit
compinit
fi
# increase history
HISTSIZE=500000000
setopt incappendhistory
setopt histignoredups
setopt extendedhistory
# prompt
autoload -Uz vcs_info
precmd() { vcs_info }
zstyle ':vcs_info:*' formats '(%F{magenta}%b%f)'
setopt prompt_subst
PS1=$'%F{magenta}%n%f@%m %F{gray}%~${vcs_info_msg_0_}\n%f%# '
export PATH="/usr/local/opt/coreutils/libexec/gnubin:$HOME/.cargo/bin:$HOME/.local/bin:$PATH"
# set GPG_TTY for macos
export GPG_TTY="$(tty)"
# set ssh key for git
export GIT_SSH_COMMAND='ssh -i ~/.ssh/id_lratt'
alias dots="git --work-tree=$HOME --git-dir=$HOME/dotfiles.git"
alias ct="cargo test"
alias cr="cargo run"
alias cw="cargo watch"
alias ccl="cargo clippy"
alias vi="nvim"
alias vim="nvim"
# vi mode
bindkey -v
source $HOME/git/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh