-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
91 lines (73 loc) · 2.33 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
#!/usr/bin/env zsh
# _
# _______| |__ _ __ ___
# |_ / __| '_ \| '__/ __|
# _ / /\__ \ | | | | | (__
# (_)___|___/_| |_|_| \___|
# make sure the correct character set is used
export LANG="en_US.UTF-8"
# tell zsh to use colors
export TERM="xterm-256color"
# setup GPG key
export GPG_TTY=$(tty)
# === zplug ===
# init zplug
source /usr/share/zsh/scripts/zplug/init.zsh
# load oh-my-zsh lib components
zplug "lib/*", from:oh-my-zsh
# oh-my-zsh plugins
zplug "plugins/ssh-agent", from:oh-my-zsh
zplug "plugins/fzf", from:oh-my-zsh
zplug "plugins/colored-man-pages", from:oh-my-zsh
zplug "plugins/ripgrep", from:oh-my-zsh
zplug "plugins/git", from:oh-my-zsh
zplug "plugins/gitignore", from:oh-my-zsh
zplug "plugins/gh", from:oh-my-zsh
zplug "plugins/docker", from:oh-my-zsh
zplug "plugins/docker-compose", from:oh-my-zsh
zplug "plugins/kubernetes", from:oh-my-zsh
zplug "plugins/kubectl", from:oh-my-zsh
zplug "plugins/helm", from:oh-my-zsh
zplug "plugins/aws", from:oh-my-zsh
zplug "plugins/python", from:oh-my-zsh
zplug "plugins/pip", from:oh-my-zsh
# zplug "plugins/pyenv", from:oh-my-zsh
zplug "plugins/golang", from:oh-my-zsh
# plugins
zplug "MichaelAquilina/zsh-autoswitch-virtualenv", from:github, as:plugin
zplug "hlissner/zsh-autopair", from:github, as:plugin
zplug "chrissicool/zsh-256color", from:github, as:plugin
zplug "djui/alias-tips", from:github, as:plugin
zplug "MichaelAquilina/zsh-auto-notify", from:github, as:plugin
zplug "zsh-users/zsh-autosuggestions", from:github, as:plugin
zplug "zsh-users/zsh-syntax-highlighting", from:github, as:plugin, defer:2
# Install plugins if there are plugins that have not been installed
if ! zplug check --verbose; then
printf "Install? [y/N]: "
if read -q; then
echo; zplug install
fi
fi
# load zplug plugins
# zplug load --verbose
zplug load
# === end zplug ===
# use starship prompt, must be installed seperately
# on arch: pacman -S starship
# starship is configured in a seperate configuration file
# located in ~/.config/starship.toml
eval "$(starship init zsh)"
# ====== Custom settings =====
# show hidden files in tabcompletion
# setopt globdots
# Enable Ctrl-x-e to edit command line
autoload -U edit-command-line
# source custom commands
source ~/.env
source ~/.aliases
source ~/.env-local
# init zoxide
# eval "$(zoxide init zsh)"
# btw I use Arch...
echo
pfetch