-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.bash_aliases
164 lines (126 loc) · 5.5 KB
/
.bash_aliases
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
#-------------------- All aliases command -----------
alias bash_aliases='subl /home/nahid/.bash_aliases'
alias copytolfs10x='cp ~/.bash_aliases /media/nahid/data-center/github-repo/LFS10x/'
alias tocsv='libreoffice --headless --convert-to csv'
alias topdf='lowriter --convert-to pdf'
alias open='xdg-open'
alias yesrm='yes | rm -i '
alias localru='xdg-open http://local.ru.ac.bd/login'
alias github='xdg-open https://github.com/Nahid-Hassan'
alias facebook='xdg-open https://www.facebook.com/'
alias youtube='xdg-open https://www.youtube.com/'
alias mail='xdg-open https://mail.google.com/mail/u/0/'
alias drive='xdg-open https://drive.google.com/drive/my-drive'
alias linkedin='xdg-open https://www.linkedin.com/in/md-nahid-hassan-a3639317a/'
alias githubio='xdg-open https://nahid-hassan.github.io/'
alias base='source ~/miniconda3/bin/activate'
alias deactivate='conda deactivate'
alias gcal='xdg-open https://calendar.google.com/calendar/r?pli=1&t=AKUaPmYCgDLp3XU4ClfdQlw1-XRjtDRcNTF-GFauYRYPEjcikeXK1PyvsjTCLgLP9RJo4FVDF94HeOxXUQsDLVsUUzp9ukPmNw%3D%3D'
alias gtrans="xdg-open https://translate.google.com/"
# fun option
alias today='calendar -A 0 -f /usr/share/calendar/calendar.mark | sort'
# Add safety nets
# do not delete / or prompt if deleting more than 3 files at a time #
alias rm='rm -I --preserve-root'
# confirmation #
alias mv='mv -i'
alias cp='cp -i'
alias ln='ln -i'
alias you18='youtube-dl -f 18 '
# Parenting changing perms on / #
alias chown='chown --preserve-root'
alias chmod='chmod --preserve-root'
alias chgrp='chgrp --preserve-root'
# very handy
alias untar='tar -zxvf '
alias wget='wget -c '
alias getpass="openssl rand -base64 10"
alias c='clear'
alias ipe='curl ipinfo.io/ip'
# insatll program
# alias install='sudo apt-get install'
# alias update='sudo apt-get update --yes'
# alias upgrade='sudo apt-get upgrade --yes'
# Control cd command behavior
alias .='cd ../'
alias ..='cd ../../'
# Control ls command output
## Colorize the ls output ##
alias ls='ls --color=auto'
## Use a long listing format ##
alias ll='ls -l'
## Show hidden files ##
alias l.='ls -d .* --color=auto'
# Start calculator with math support
alias bc='bc -l'
# Create parent directories on demand
alias mkdir='mkdir -pv'
# Make mount command output pretty and human readable format
alias mount='mount |column -t'
# open file in specific software alias -s txt=gedit alias -s md=typora alias
# -s cpp=code alias -s py=code alias -s mp4=vlc alias -s mp3=rhythmbox alias
# -s java=subl alias -s js=code alias -s html=code alias -s css=code alias -s
# htm=code alias -s c=
# du - estimate file space usage
alias uspace='du -sh .'
# df - report file system disk space usage
alias sfs='df -h | grep sda'
# alias df="df -Tha --total"
# alias du="du -ach | sort -h"
alias du=ncdu
# drive shortcut open the drive
alias data-center='xdg-open /media/nahid/data-center'
alias admin-user='xdg-open /media/nahid/admin-user'
alias entertainment='xdg-open /media/nahid/entertainment'
alias fma-library='xdg-open /media/nahid/fma-library'
# shortcut for google-chrome
alias gdrive='google-chrome /media/nahid/'
alias ghome='google-chrome /home/nahid/'
alias ggoogle='google-chrome http://www.google.com/'
# shortcut for cd command
alias godata-center='cd /media/nahid/data-center1/'
alias goadmin-user='cd /media/nahid/admin-user/'
alias goentertainment='cd /media/nahid/entertainment/'
alias gofma-library='cd /media/nahid/fma-library/'
# update .bash_aliases
alias ubash='source ~/.bash_aliases'
# find ip address
alias myip="ifconfig | grep -G "192.168.*.255" | cut -d' ' -f10"
alias myip1="hostname -I | cut -d' ' -f1"
# other ...
alias copycorejava='cp -r /media/nahid/data-center/departmental/2nd\ year\ 2nd\ semester/OPP\ with\ Java /media/nahid/data-center/github-repo/Java-Programming-Language'
# ps command
alias psgrep='ps -ef | grep $1'
alias psg="ps aux | grep -v grep | grep -i -e VSZ -e"
# github alias
alias gs='git status'
alias gc='git commit -m $1'
alias gp='git push -u origin master'
alias exam='xdg-open https://docs.google.com/document/d/1XaEYplDcBzllnK_HOHkyoDa4WS6YRSAaY8cinZIf93o/edit'
alias dhalchut='xdg-open https://www.facebook.com/groups/1713320778742013/'
alias mc='mc -b'
alias tlpstat='sudo tlp-stat -s'
alias tlpstart='sudo systemctl tlp start'
alias dept='xdg-open https://drive.google.com/drive/folders/1MU_wg3jBnRJhJmPjL9Jdq3w_1CXKHd4S'
alias gitresetlastcommit='git reset HEAD~'
alias cn='ping 8.8.8.8'
alias udacity='xdg-open https://classroom.udacity.com/me'
alias grep='grep -i'
alias todo='subl /media/nahid/data-center/sdt-inc/to-do.txt'
alias tasin='google-chrome --incognito https://www.youtube.com/results?search_query=thakur+mar+jhuli'
alias coursera='open https://www.coursera.org/programs/rajshahi-university-on-coursera-uvht'
alias python='python3'
alias tenda='open http://192.168.0.1/index.html'
alias django='open https://docs.djangoproject.com/en/3.1/'
alias update='sudo apt-get update -y && sudo apt-get upgrade -y && sudo apt-get autoremove && sudo apt-get autoclean'
# search utility
alias attack='s-search'
alias tisha='google-chrome --incognito https://www.youtube.com/results?search_query=onnorokom+pathshala'
alias linklearn='open https://www.linkedin.com/learning/me/in-progress'
alias ls='exa'
# conda config --set auto_activate_base false
alias kawser='open https://www.youtube.com/results?search_query=thakur+ma+juli+bangla'
alias gci='google-chrome --incognito &'
alias disableinsertkey='xmodmap -e "keycode 118="'
alias withgoogle='open https://techdevguide.withgoogle.com/'
alias hackthis='open https://defendtheweb.net/?hackthis'