-
Notifications
You must be signed in to change notification settings - Fork 1
/
.zshrc
63 lines (46 loc) · 1.18 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
export ARCHFLAGS="-arch x86_64"
export EDITOR=vim
# GPG signing key
export GPG_TTY=$(tty)
# AUR package manager
export PARU_CONF=~/.paru.conf
# https://github.com/starship/starship
eval "$(starship init zsh)"
export STARSHIP_CONFIG=~/.starship
# volta.sh
export VOLTA_HOME="$HOME/.volta"
export PATH="$VOLTA_HOME/bin:$PATH"
# Python
export PATH="$HOME/.local/bin:$PATH"
# ----- #
# ZSH #
# ----- #
# Completion
# Case unsensitive
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*'
# Git
zstyle ':completion:*:*:git:*' script ~/.git-completion.bash
fpath=(~/.zsh $fpath)
autoload -Uz compinit && compinit
# Plugins
source ~/.zsh/colored-man-pages.zsh
source ~/.zsh/zsh-autosuggestions.zsh
source ~/.zsh/history.zsh
source ~/.zsh/key-bindings.zsh
source ~/.zsh/yarn-autocompletions.zsh
# --------- #
# Aliases #
# --------- #
alias zshreload="source ~/.zshrc"
alias grep="grep --color=auto"
alias ls="lsd"
alias less="less -R"
alias rm="rm -i"
alias cp="cp -i"
alias mv="mv -i"
alias vi3="vim ~/config/i3/config"
alias vz="vim ~/.zshrc"
alias vv="vim ~/.config/nvim/init.vim"
alias vs="vim ~/.starship"
alias vt="vim ~/.tmux.conf"
alias dc="docker-compose"