-
Notifications
You must be signed in to change notification settings - Fork 18
/
standard_rc
361 lines (290 loc) · 11.2 KB
/
standard_rc
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
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
# _ _ _
# ___| |_ __ _ _ __ __| | __ _ _ __ __| |
# / __| __/ _` | '_ \ / _` |/ _` | '__/ _` |
# \__ \ || (_| | | | | (_| | (_| | | | (_| |
# |___/\__\__,_|_| |_|\__,_|\__,_|_| \__,_|
#
# _ __ ___
# | '__/ __|
# | | | (__
# |_| \___|
#
# This is the project's configuration file, meaning that only
# time it is used, is on install, when it gets copied to user's
# home directory as .standardrc (if it is not already there).
# It specifies short names for functions that are defined in
# standard_aliases (located in projects directory). It also
# defines options that this functions use, when they call
# specific commands.
# LESS #
le, less1 : Display text or file in pager.
m : Print or display text or file in pager.
# LS #
l : List or display directory contents in pager using short listing format.
: List or display directory contents in pager using medium listing format.
ll : List or display directory contents in pager using long listing format.
la : List or display all directory contents in pager using short listing format.
: List or display all directory contents in pager using medium listing format.
lla : List or display all directory contents in pager using long listing format.
lt : List or display directory contents in pager ordered by date using short listing format.
: List or display directory contents in pager ordered by date using medium listing format.
llt : List or display directory contents in pager ordered by date using long listing format.
dl : List or display matching directories in pager using short listing format.
: List or display matching directories in pager using medium listing format.
dll : List or display matching directories in pager using long listing format.
l1 : List or display in pager one directory item per line using short listing format.
la1 : List or display in pager one directory item per line including hidden files using short listing format.
first : List first file in directory.
nf, newest : Print name of newest file in directory.
rf, randomFile : Print name of random file in directory.
findd, directories : Print all subdirectories.
extensions : Print all file extensions.
# TREE #
t, tree1 : Print directory structure.
tt : Clear screen andprint directory structure.
# CD #
.., cd.. : Go up one directory.
... : Go up two directories.
.... : Go up three directories.
..... : Go up four directories.
...... : Go up five directories.
....... : Go up six directories.
cdiso : Mount iso and cd into.
# FILES #
cp : Copy files safely.
mv : Move files safely.
rm : Delete files safely.
cpdir : Copy directories safely.
mvdir : Move directories safely.
rmdir : Delete directories safely.
mk, md, mkdir1 : Create directory and descend into.
bk, backup : Backup file.
switch : Switch contents of files.
# PWD #
p : Print working directory or path to file.
# ECHO #
e : Print text.
ee : Print text interpreting backslashed characters.
en : Print text without trailing newline.
# RUN IN BACKGROUND #
rb, runInBackground : Run command in background.
# BASICS #
ef, editFunctions : Edit standard aliases.
er, editUsersRc : Edit users standard rc.
er1, editProjectsRc : Edit projects standard rc.
ba : Start new bash shell.
ty, type1 : Print command type or definition.
c : Print file contents.
? : Print exit code of last command.
cl, clr : Clear the screen.
re : Reset the screen.
q : Exit bash shell.
o, openFile : Open file with default app.
te, terminal : Open new terminal with same working directory.
to : Update files timestamp or create new one.
da : Print date and time.
ma, make1 : Run make with pager.
na, explorer : Start file explorer in background in working directory.
diff1 : Compare files line by line in color.
me, makeExecutable : Make file executable or create new bash or python script.
# HISTORY #
h, history1 : Search command history for pattern.
# TEXT EDITORS #
v : Edit file with vim.
vv : View file in vim.
n, nano1 : Edit file with nano.
nv : View file in nano.
g, gedit1 : Edit file with gedit.
sub : Edit file with sublime text.
# SUDO #
s : Execute command as super user.
f, please : Execute last command as super user.
sudoCp : Copy files safely as super user.
smv : Move files safely as super user.
srm : Delete files safely as super user.
scpdir : Copy directories safely as super user.
smvdir : Move directories safely as super user.
srmdir : Delete directories safely as super user.
sm, sle : Display text or file in pager as super user.
sv, se : Edit file with vim as super user.
svv : View file in vim as super user.
sn : Edit file with nano as super user.
sg : Edit file with gedit as super user.
fdisk : Run fdisk as super user.
updatedb : Run updatedb as super user.
ifconfig : Run ifconfig as super user.
tcpdump : Run tcpdump as super user.
route : Run route as super user.
pm-hibernate : Run pm-hibernate as super user.
pm-suspend : Run pm-suspend as super user.
shutdown : Run shutdown as super user.
fstrim : Run fstrim as super user.
aptget : Run apt-get as super user.
iw : Run iw as super user.
nmap : Run nmap as super user.
parted : Run parted as super user.
ntfsundelete : Run ntfsundelete as super user.
lshw : Run lshw as super user.
chown : Run chown as super user.
mount : Run mount as super user.
# PROCESESS #
taskManager, ht : Run terminal task manager.
ps1 : Print users processes.
psa, pse, processes : Print all processes.
pgrep1 : Find processes with part of name.
kill1 : Kill process with kill signal.
st, strace1, trace : Trace system calls.
# TEXT #
he : Print first ten lines.
he1, firstLine : Print first line.
ta : Print last ten lines.
ta1, lastLine : Print last line.
wcl, countLines : Count lines.
wcw, countWords : Count words.
trd : Delete characters.
loc, linesOfCode : Count lines in files with extension in working and subdirectories.
# TABLES #
table : Line up columns.
cut1, keepColumns : Keep columns.
sort1 : Sort lines by column.
# SEARCH #
grep1 : Print lines containing pattern.
gr : Print or display with pager lines containing pattern.
grr : Print or display with pager numbered lines containing pattern in working and subdirectories.
lo, locate1 : Locate files on filesystem containing pattern in their names.
find1 : Locate files containing pattern in their names in working and sub directories.
# ARCHIVES #
extract : Extract archive of any type.
# TERMINAL MULTIPLEXER #
tm, mu : Run terminal multiplexer.
tma, mua : Run terminal multiplexer and attach to last session.
tml, mul : List terminal multiplexers sessions.
# SYSTEM INFORMATION #
df1 : Print available disk space in simplified form.
du1 : Print disk space occupied by file or folder.
fr, free1 : Print all and free memory space in megabytes.
temp, temperature : Print temperature of cpu.
batt, battery : Print battery status.
uname1, kernelVersion : Print operating system information.
pci, lspci1 : Print info about pci devices.
# POWER #
reboot : Restart computer.
poweroff : Shut down computer.
hib : Hibernate computer.
sus : Suspend computer.
# KEYBOARD #
uskeys : Switch to american keyboard layout.
keycode : Monitor keycodes of pressed keys.
norepeat : Turn off key repeat.
repeat : Turn on key repeat.
# MISC #
blue : Change hue of color blue in linux terminal.
path : List directories contained in path variable.
bc1 : Run terminal calculator that supports decimal numbers.
hd1 : Print hexadecimal representation of file or stream.
profile : Run profile script.
vimode : Change bash line editing to vi mode.
emacsmode : Change bash line editing to emacs mode.
ssd : Trim ssd.
typingTutor : Start typing tutor.
extension : Describe file extension.
# PACKAGE MANAGEMENT #
ch, canhaz : Install package.
update : Update information about available packages.
upgrade : Upgrade all packages.
dist-upgrade : Upgrade all packages intelligently.
remove : Remove package and all unneeded packages.
purge : Remove package and all unneeded packages together with configuration files.
autoremove : Remove unneeded packages.
installed, packages : Print packages that were installed by user.
allInstalled, allPackages : Print all installed packages.
depends : Print package dependencies.
# PACKAGE INFORMATION #
pd, describe : Print package description.
ve, version : Print installed and available version of package or command.
package : Print package of installed command together with description and location.
# PACKAGE SEARCH #
findPackage : Find available packages with part of name or description.
ap, apropos1, findCommand : Find installed commands with part of name or description.
apt-file1 : Find available packages that provide command.
wi, whatis1 : Describe package or command or find available packages with part of name or command.
# GIT #
commit : Commit changed and deleted files with message.
commitm : Commit changed and deleted files and edit message in editor.
init : Initialize repository.
push : Push changes to remote repository.
pull : Pull changes from remote repository.
merge : Merge specified branch with current one.
gc, checkout : Checkout branch or file.
gb, branch : List branches or create new one.
gs : Print short repository status.
gl : Display minimal log of commits.
gll : Display medium log of commits.
glll : Display log of commits.
gu : Update information about remote repository and print status.
gd : Display changes between commits.
ga : Add files to repository.
gm : Move repositories files.
gls, lsgit : List files that are in repository.
# GITHUB #
clone : Clone github project.
origin : Set github project as remote repository.
cloneAll : Clone all users github projects.
# NETWORK #
ip1 : Print internal ip.
ip2 : Print external ip.
gateway : Print gateways ip.
mac : Print mac addresses of network devices.
pa, pingAll : Ping gateway and google.
nmap1 : Scan local network.
ne, network : Print ssh port status of local devices and ping google.
# WIRELESS #
woff : Block wireless device.
won : Unblock wireless device.
wr : Reset wireless device.
up : Activate wireless interface.
down : Deactivate wireless interface.
wlan : Print wireless networks in range.
# INTERNET #
i, www, internet : Start default browser in background.
fire : Start firefox in background.
chrome : Start chrome in background.
lynx1 : Start terminal web browser.
# AUDIO #
mixer : Start terminal volume control.
a : Increase volume by six decibels.
z : Decrease volume by six decibels.
aa : Increase volume by two decibels.
zz : Decrease volume by two decibels.
# FRAMEWORK #
fu : Edit standard functions.
rc, al : Edit standard rc.
#######
####### Command options
#######
# This options will only be used when one of a function from
# this shortcuts uses them, and not every time you call the
# command directly.
less ; --RAW-CONTROL-CHARS --ignore-case --QUIET --tilde --tabs=4 -P%db/%D\ %f$
ls ; --classify -X -C --color=auto --group-directories-first
lsMedium ; -l --no-group -g --human-readable --time-style=+%b\ %_d\ %Y\ %H:%M
tree ; -C -I .git --dirsfirst
touch ;
date ;
make ;
diff ;
vim ; -p
nano ; --undo --autoindent --const --historylog --multibuffer --wordbounds --smooth --tabsize=4
gedit ;
htop ;
ps ;
pgrep ; --list-name
strace ; -s\ 2000 -f
grep ; --exclude-dir=\.svn --exclude-dir=\.git --ignore-case --perl-regexp
locate ;
find ; -not -iwholename '*.git*'
tmux ;
lspci ; -v
hd ;
chrome ; --touch-devices=123
lynx ; -accept_all_cookies -vikeys www.google.com