-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.zshrc
129 lines (107 loc) · 3.26 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
# drop into fish
if [[ $(ps --no-header --pid=$PPID --format=cmd) != "fish" && -z ${BASH_EXECUTION_STRING} ]]
then
exec fish
fi
# path
export PATH=/home/fahim/.local/bin:$PATH
export PATH=/home/fahim/bin/:$PATH
# load zgenom
source "${HOME}/.zgenom/zgenom.zsh"
# if the init scipt doesn't exist
if ! zgenom saved; then
echo "Creating a zgenom save"
zgenom oh-my-zsh
# plugins
zgenom loadall <<EOPLUGINS
Tarrasch/zsh-bd
zsh-users/zsh-autosuggestions
ChrisPenner/copy-pasta
romkatv/zsh-prompt-benchmark
marzocchi/zsh-notify
vkolagotla/zsh-random-quotes
le0me55i/zsh-systemd
laggardkernel/zsh-thefuck
nviennot/zsh-vim-plugin
owenvoke/quoter-zsh
mafredri/zsh-async
ahmubashshir/zinsults
EOPLUGINS
# omz plugins
zgenom oh-my-zsh plugins/git
zgenom oh-my-zsh plugins/sudo
# theme
zgenom load /home/fahim/lib/node_modules/robbyrussell/adapters/adapter.zsh
# save all to init script
zgenom save
fi
# ls
alias l='ls -lh'
alias ll='ls -lah'
alias la='ls -A'
alias lm='ls -m'
alias lr='ls -R'
alias lg='ls -l --group-directories-first'
# git
alias gcl='git clone --depth 1'
alias gi='git init'
alias ga='git add'
alias gc='git commit -m'
alias gp='git push origin master'
alias c="clear"
alias q="exit"
alias hd="hexdump -C"
alias default-apps="clear && ~/.scripts/default-apps/launch && ~/.scripts/default-apps/launch -e"
# pacman
alias pill="sudo powerpill -S"
alias up="sudo pacman -Sy && sudo powerpill -Su && yay"
alias in="yay -S"
alias search="yay -Ss"
alias yayupd="yay -Sy"
alias yayupg="yay -Syu"
alias out="yay -Rcns"
alias orphan="sudo pacman -Qdtq | sudo pacman -Rs -"
alias emergeins="$PRIV emerge -av"
alias emergepv="$PRIV emerge -pv"
alias emergeupd="$PRIV emaint -a sync"
alias emergeupg="$PRIV emerge -av --update --deep --changed-use @world"
alias emergedepc="$PRIV emerge --depclean -av"
alias emergenuse="$PRIV emerge -av --update --newuse --deep @world"
alias emergecuse="$PRIV emerge -av --update --changed-use --deep @world"
alias ecleandist="$PRIV eclean-dist --deep"
alias ecleankern="$PRIV eclean-kernel -n 3"
alias rc-service="$PRIV rc-service"
alias rc-update="$PRIV rc-update"
alias pingoogle="ping 8.8.8.8"
alias trimall="$PRIV fstrim -va"
alias nanosu="$PRIV nano"
alias nvimsu="$PRIV nvim"
# Power
alias off="systemctl poweroff -i"
alias boot="systemctl reboot -i"
# Term paste
alias paste="curl -F 'sprunge=<-' http://sprunge.us"
alias termbin="nc termbin.com 9999 <"
# YouTube-dl
alias ydl="youtube-dl -x --audio-format mp3 --prefer-ffmpeg"
alias yvid="youtube-dl --merge-output-format mp4"
# WGCF
alias won="wg-quick up wgcf-profile"
alias woff="wg-quick down wgcf-profile"
alias wforce="sudo rm -rf wgcf-profile.conf && wgcf generate && sudo rm -rf /etc/wireguard/wgcf-profile.conf && sudo cp wgcf-profile.conf /etc/wireguard"
# Energized
alias eng="sudo sh ~/Downloads/scripts/energized.sh"
# ytfzf
alias yt="ytfzf -s -t -f --preview-side=left"
# Anbox Container
alias anon="sudo systemctl start anbox-container-manager.service"
alias anoff="sudo systemctl stop anbox-container-manager.service"
autoload -Uz spm pm
# Systemd
alias sc="systemctl"
alias scs="systemctl start"
alias scst="systemctl stop"
alias scu="systemctl --user"
alias rank="sc restart rankmirror@{chaotic-,}mirrorlist.service"
# zoxide
alias z="zoxide"