-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
46 lines (35 loc) · 1.04 KB
/
.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
45
46
fpath=(~/.zsh/plug/zsh-completions/src $fpath)
autoload -Uz compinit; compinit
autoload -Uz vcs_info
precmd() { vcs_info }
### FUNCTIONS
. ~/.scripts/functions.sh
### PLUGINS
. ~/.zsh/plug/zsh-syntax-highlighting/zsh-syntax-highlighting.plugin.zsh
. ~/.zsh/plug/zsh-autosuggestions/zsh-autosuggestions.plugin.zsh
. ~/.zsh/plug/zsh-autoswitch-virtualenv/autoswitch_virtualenv.plugin.zsh
### PROMPT
zstyle ':vcs_info:git:*' formats '%b '
setopt PROMPT_SUBST
PROMPT=' %30<...<%~%<< %F{green}> $f'
RPROMPT='${vcs_info_msg_0_:+on} %F{yellow}${vcs_info_msg_0_}$f'
### HISTORY
HISTFILE=~/.zsh_history
HISTSIZE=1000
SAVEHIST=1000
### KEYBINDS
# ---
### ALIASES
alias ".."="cd .."
alias "~"="cd"
alias ls='ls --color'
alias ovim='/bin/vim'
alias vim=nvim
alias rmswap="rm ~/.local/state/nvim/swap/*"
alias gt='cd $(git rev-parse --show-toplevel)'
alias dotsync=~/.scripts/dotsync/dotsync.sh
alias i3-config="vim ~/.config/i3/config"
alias vim-config="vim ~/.config/nvim/init.vim"
# if [ "$TERM" = 'alacritty' ]; then
# alias vim="swallow neovide --no-fork"
# fi