-
Notifications
You must be signed in to change notification settings - Fork 1
/
.bashrc
276 lines (249 loc) · 5.49 KB
/
.bashrc
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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
#!/bin/bash
stty -ixon # Disable ctrl-s and ctrl-q.
shopt -s autocd #Allows you to cd into directory merely by typing the directory name.
HISTSIZE= HISTFILESIZE= # Infinite history.
#export PS1="\[$(tput bold)\]\[$(tput setaf 1)\][\[$(tput setaf 3)\]\u\[$(tput setaf 2)\]@\[$(tput setaf 4)\]\h \[$(tput setaf 5)\]\W\[$(tput setaf 1)\]]\[$(tput setaf 7)\]\\$ \[$(tput sgr0)\]"
export PS1=" \[$(tput bold)\]\[$(tput setaf 1) \] λ \w \\$\[$(tput sgr0)\] "
#export PS1="\[\e[33m\] λ \[\e[,\]\[]\e[36m\]@\[\e0\]:\[\e[35m\]\h\[\e[m\]] \[\e[31m\]\w[\e[m\]:\[\e[33m\]\\$\\[\e[m\] "
#export PS1="[\[\e[33m\]\u\[\e[,\]\[]\e[36m\]@\[\e0\]:\[\e[35m\]\h\[\e[m\]] \[\e[31m\]\w[\e[m\]:\[\e[33m\]\\$\\[\e[m\] "
[ -f "$HOME/.shortcuts" ] && source "$HOME/.shortcuts" # Load shortcut aliases
export EDITOR="vim"
export FILE="ranger"
export TERMINAL="st"
export PATH="$PATH:/usr/local/share/man/man1/"
export PATH="$PATH:/home/jon/.local/bin/i3cmds/"
export PATH="$PATH:/home/jon/.local/bin/tools/"
export PATH="$PATH:/home/jon/.local/bin/statusbar/"
export PATH="$PATH:/home/jon/.local/bin/cron/"
export PATH="$PATH:/home/jon/.local/bin/utilities/"
export PATH="$PATH:~/Downloads/Spine/"
# System Maintainence
alias mw="~/.config/mutt/mutt-wizard.sh"
alias sdn="sudo shutdown now"
alias psref="gpg-connect-agent RELOADAGENT /bye" # Refresh gpg
alias gua="git remote | xargs -L1 git push --all"
alias kys='echo "you first lil nigga"'
alias qtchan='cd ~/Documents/qtchan/build/ ; ./qtchan &'
# Some aliases
alias e="$EDITOR"
#alias ls='lsd'
alias incite='sudo pacman -Syyu'
alias brc='vim ~/.bashrc'
alias vrc='vim ~/.vimrc'
alias xrc='vim ~/.Xresources'
alias cic='vim ~/.config/i3/config'
alias p="sudo pacman"
alias SS="sudo systemctl"
alias v="vim"
alias talk="nctelegram"
alias f="vifm"
alias r="ranger"
alias dd="w3m duckduckgo.com"
alias ka="killall"
alias g="git"
alias trem="transmission-remote"
alias mkd="mkdir -pv"
#alias ref="shortcuts >/dev/null ; source ~/.bashrc" # Refresh shortcuts manually and reload bashrc
alias mpv="mpv --input-ipc-server=/tmp/mpvsoc$(date +%s)"
alias x="sxiv -ft *"
alias lp="pacman -Qett --color=always | less"
alias packer="yaourt"
alias ta="tmux attach"
alias sxhk="vim ~/.config/sxhkd/sxhkdrc"
# Adding color
alias ls='ls -hN --color=auto --group-directories-first'
alias grep="grep --color=auto"
alias diff="diff --color=auto"
alias ccat="highlight --out-format=ansi" # Color cat - print file with syntax highlighting.
alias wow="/home/jon/Games/world-of-warcraft/drive_c/Program Files (x86)/World of Warcraft/_retail_/Wow.exe"
export LESS_TERMCAP_mb=$'\e[1;32m'
export LESS_TERMCAP_md=$'\e[1;32m'
export LESS_TERMCAP_me=$'\e[0m'
export LESS_TERMCAP_se=$'\e[0m'
export LESS_TERMCAP_so=$'\e[01;33m'
export LESS_TERMCAP_ue=$'\e[0m'
export LESS_TERMCAP_us=$'\e[1;4;31m'
export DOWNGRADE_FROM_ALA=1
# Internet
alias ytv="youtube-dl --add-metadata -i" # Download video link
alias yta="yt --add-metadata -x -f bestaudio/best" # Download only audio
alias YT="youtube-viewer"
shdl() { curl -O $(curl -s http://sci-hub.tw/"$@" | grep location.href | grep -o http.*pdf) ;}
se() { du -a ~/.scripts/* ~/.config/* | awk '{print $2}' | fzf | xargs -r $EDITOR ;}
sv() { vcopy "$(du -a ~/.scripts/* ~/.config/* | awk '{print $2}' | fzf)" ;}
vf() { fzf | xargs -r -I % $EDITOR % ;}
function exit() {
if [ -n "$TMUX" ] && [ "$(basename $(echo $TMUX | cut -d, -f1))" = "awesome-termgrp" ]; then
if [ $(tmux list-window | wc -l) -gt 1 ]; then
tmux kill-window \; kill-session
else
tmux kill-window
fi
else
builtin exit
fi
}
export LF_ICONS="\
tw=:\
st=:\
ow=:\
dt=:\
di=:\
fi=:\
ln=:\
or=:\
ex=:\
*.c=:\
*.cc=:\
*.clj=:\
*.coffee=:\
*.cpp=:\
*.css=:\
*.d=:\
*.dart=:\
*.erl=:\
*.exs=:\
*.fs=:\
*.go=:\
*.h=:\
*.hh=:\
*.hpp=:\
*.hs=:\
*.html=:\
*.java=:\
*.jl=:\
*.js=:\
*.json=:\
*.lua=:\
*.md=:\
*.php=:\
*.pl=:\
*.pro=:\
*.py=:\
*.rb=:\
*.rs=:\
*.scala=:\
*.ts=:\
*.vim=:\
*.cmd=:\
*.ps1=:\
*.sh=:\
*.bash=:\
*.zsh=:\
*.fish=:\
*.tar=:\
*.tgz=:\
*.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