-
Notifications
You must be signed in to change notification settings - Fork 0
/
zshrc
100 lines (73 loc) · 2.62 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# Plugins {{{
# ==============================================================================
# Load the Antibody plugin manager for zsh.
source <(antibody init)
# Setup required env var for oh-my-zsh plugins
# export ZSH="$(antibody home)/https-COLON--SLASH--SLASH-github.com-SLASH-robbyrussell-SLASH-oh-my-zsh"
antibody bundle robbyrussell/oh-my-zsh
antibody bundle robbyrussell/oh-my-zsh path:plugins/nmap
antibody bundle robbyrussell/oh-my-zsh path:plugins/rsync
antibody bundle robbyrussell/oh-my-zsh path:plugins/z
# Other bundles
antibody bundle sampson-chen/sack
antibody bundle zsh-users/zsh-autosuggestions
# antibody bundle marlonrichert/zsh-autocomplete
# This needs to be the last bundle.
antibody bundle zsh-users/zsh-syntax-highlighting
antibody bundle dracula/zsh
# }}}
# Configuration {{{
# ==============================================================================
HYPHEN_INSENSITIVE="true"
ENABLE_CORRECTION="true"
COMPLETION_WAITING_DOTS="true"
HIST_STAMPS="yyyy-mm-dd"
typeset -U path cdpath fpath
# Vim mode
bindkey -v
# Search backwards and forwards with a pattern
bindkey -M vicmd '/' history-incremental-pattern-search-backward
bindkey -M vicmd '?' history-incremental-pattern-search-forward
# set up for insert mode too
bindkey -M viins '^R' history-incremental-pattern-search-backward
bindkey -M viins '^F' history-incremental-pattern-search-forward
export KEYTIMEOUT=1
export GIT_EDITOR=nvim
GOPATH=$HOME/go
GOROOT=/usr/lib/go
path=(
$GOPATH/bin
$HOME/.local/bin
$HOME/.bin
$HOME/bin
$HOME/.composer/vendor/bin
$HOME/.go/bin
$path
)
zstyle ':completion:*' group-name ''
zstyle ':completion:*:descriptions' format %d
zstyle ':completion:*:descriptions' format %B%d%b
zstyle ':completion:*:complete:(cd|pushd):*' tag-order \
'local-directories named-directories'
export EDITOR='nvim'
export NVIM_LISTEN_ADDRESS='/tmp/nvimsocket'
unsetopt sharehistory
# }}}
# Aliases & Functions {{{
# ==============================================================================
# General
alias ssh="kitty +kitten ssh"
# Stop and Remove all containers
alias drmaci='(docker stop $(docker ps -a -q) || true) && (docker rm $(docker ps -a -q) || true)'
alias hg="history | grep"
# Wireguard
alias up='sudo wg-quick up wg0'
alias down='sudo wg-quick down wg0'
# cd() {
# cd $1 && eval ls
# }
# alias cd="cdls"
open () {
xdg-open $* > /dev/null 2>&1
}
# }}}