-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bashrc
67 lines (61 loc) · 2.01 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
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
alias ls='ls --color=auto'
alias grep='grep --color=auto'
PS1='[\u@\h \W]\$ '
alias dl='sudo pacman -S'
alias update='sudo pacman -Syu'
alias neofetch='hyfetch'
alias lock='i3lock -c 000000'
alias c='clear'
alias clr='clear'
alias i3config='nano /home/silvanathecat/.config/i3/config'
alias c4='clear && clear && clear && clear'
alias yes='echo no fuck you'
alias poweroff='systemctl poweroff'
alias dcl='openssl aria-256-ctr -iter 1000 -d < /home/silvanathecat/writing/pvmef.txt.aria-256-ctr > /home/silvanathecat/writing/pvmef.txt && rm /home/silvanathecat/writing/pvmef.txt.aria-256-ctr'
alias ecl='openssl aria-256-ctr -iter 1000 < /home/silvanathecat/writing/pvmef.txt > /home/silvanathecat/writing/pvmef.txt.aria-256-ctr && rm /home/silvanathecat/writing/pvmef.txt'
alias wcl='nano /home/silvanathecat/writing/pvmef.txt'
alias blacklist='sudo pacman -Sg | grep blackarch'
alias brc='nano /home/silvanathecat/.bashrc'
alias sb='source /home/silvanathecat/.bashrc'
alias ndwc-school='nmcli device wifi connect GCS-MBL password GhSW1r3LL355'
alias nc='nordvpn connect'
alias nd='nordvpn disconnect'
alias nr='nordvpn rate'
alias ns='nordvpn status'
function ultraclear() {
for i in {1..26214400}; do
run clear
done
}
function runpy() {
#return when not enough arguments
if [ -z "$1"]; then
echo "Error: Not Enough Args"
return 1
fi
#run the python
python ~/Documents/PyFiles/""$1"".py
}
function wifiquery() {
#define the string
wifitestc='ping google.com -c 1 | grep data'
wifitestd='ping google.com -c 1 | grep failure'
#test the string
if [[ $wifitestc == *"data"* ]]; then
echo "WAN is connected"
elif [[ $wifitestc != *"data"* ]]; then
echo "WAN is disconnected, checking further"
if [[ $wifitestd == *" ]]
else
echo "Either there's no WAN or I fucked up"
fi
}
#making shorthand because im a lazy idiot
alias wq='wifiquery'
eval "$(thefuck --alias)"
# Chromium bullshit
export PATH="/home/silvanathecat/depot_tools:$PATH"