-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathaliases
118 lines (93 loc) · 2.6 KB
/
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
# These are my personal aliases , you are free to use/edit them
# changing the directory {{{
alias "cd.."='cd ..'
alias ".."='cd ..'
alias "..."='cd ../..'
alias "...."='cd ../../..'
alias "....."='cd ../../../..'
# }}}
# alias rm to trash {{{
alias rm='trash ' # everything you delete will go to ~/.local/share/Trash , sometimes we remove important file in work flow
# and with rm command they became un-recoverable
# }}}
# cpplint {{{
alias cpplint='python3 $HOME/GitHub/dot_files/cppChecker/cpplint.py '
# }}}
# mounting/unmounting block devices {{{
alias mtp='jmtpfs '
alias umpt='fusermount -u '
alias mu='mupdf '
# }}}
# some very handy alias / atleast for me ;) {{{
alias mus='cd ~/Music'
alias vid='cd ~/Videos'
alias doc='cd ~/Documents'
alias dow='cd ~/Downloads'
alias des='cd ~/Desktop'
alias b='cd ~/Books' # be careful about this
alias pic='cd ~/Pictures'
alias sof='cd ~/Softwares' # be careful about this
# }}}
# GitHub aliases {{{
alias gt='cd ~/GitHub' # be careful about this
alias add='git add '
alias push='git push '
alias check='git checkout '
alias commit='git commit '
alias commitm='git commit -m '
alias commita='git commit -a '
# }}}
# application launcher {{{
alias x='xdg-open '
alias vims='vim '
alias vm='vim '
# }}}
# some manipulated command {{{
alias t='time '
alias md='mkdir '
# alias rm='rm -r '
alias shut='sudo poweroff'
alias shutdown='sudo poweroff'
alias e='exit'
# }}}
# moving to my command testing folder {{{
alias test='cd $HOME/Testing'
# }}}
# Competitive Programming alias {{{
alias vs='vim sol.cpp '
alias o='./a.out'
alias v='vim '
alias gs='g sol.cpp'
alias out='cat output'
alias rin='rm input && vi input'
alias rio='rm input && vi input && ./a.out && clear && out'
alias inp='cat input'
alias cf='cd && cd /home/amit/Desktop/Competitive\ Programming/'
alias g++='g++ -std=c++17 '
alias g="g++ -g -Wall -Wextra -Wshadow -D HELL_JUDGE -fsanitize=signed-integer-overflow -fsanitize=return "
alias err='cat error'
alias cpx='cp ~/Templates/def.cpp ./sol.cpp '
# }}}
# Competitive Programming folder {{{
alias spoj='cd /home/amit/GitHub/SPOJ'
alias uva='cd /home/amit/GitHub/UVA--Online-Judge'
alias projecteuler='cd /home/amit/GitHub/ProjectEuler'
alias dcp='cd /home/amit/GitHub/Daily-Coding-Problem'
alias hackerrank='cd /home/amit/GitHub/HackerRank'
# }}}
# some mistyped / typos correcting commands {{{
alias quit='exit'
alias lr='ls '
alias sl='ls '
alias clea='clear'
alias cls='clear'
alias clar='clear'
alias lear='clear'
alias car='clear'
alias kl='ls'
alias ks='ls'
alias clr='clear'
alias cear='clear'
alias clar='clear'
alias c='clear'
# }}}