-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
54 lines (46 loc) · 1.45 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
# __ ___________ _ ______________
# / / / ____/ ___/ / | / / ____/_ __/
# / / / /_ \__ \ / |/ / __/ / /
# / /___/ __/ ___/ / / /| / /___ / /
#/_____/_/ /____(_)_/ |_/_____/ /_/
# https://LFrigoDeSouza.NET
# https://github.com/lfrigodesouza/Dotfiles
#
# Configuration file for ZSH shell
### IMPORTS ###
# zsh plugins
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source /usr/share/zsh/plugins/zsh-history-substring-search/zsh-history-substring-search.zsh
### PLUGINS ###
# oh-my-posh
eval "$(oh-my-posh init zsh --config ~/.config/oh-my-posh/lsz.omp.json)"
### ALIASES ###
# ProtonVPN
alias proton="protonvpn-cli"
alias protond="protonvpn-cli disconnect"
alias protonr="protonvpn-cli connect -r"
alias protonf="protonvpn-cli connect -f"
alias protonksoff="protonvpn-cli ks --off"
alias protonks="protonvpn-cli ks --permanent"
alias protonns="protonvpn-cli ns --ads-malware"
alias protonnsoff="protonvpn-cli ns --off"
# Flags
alias la="ls -A"
alias ll="ls -alF"
alias rf="rm -rfi"
alias cp="cp -i"
alias cf="cp -ri"
alias mv="mv -i"
alias rm="rm -i"
# Vim
alias vim="nvim"
# Configuration manager repository
alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'
### STARTUP ###
# ssh-agent
eval `ssh-agent -s` > /dev/null
# Start ProtonVPN on a random server if it's not connected
if proton status | grep "No active"; then
protonvpn-cli connect -r > /dev/null
echo "ProtonVPN Connected"
fi