Project

General

Profile

Bashrc » History » Version 1

Anonymous, 07/17/2021 09:13 PM
adding old bashrc page

1 1
h1. bashrc
2
3
<pre>
4
alias ll="ls -lh"
5
6
export EDITOR="vim"
7
8
# User specific aliases and functions
9
search() {
10
    grep -rnI --exclude-dir=.svn "$1" .
11
}
12
13
# Hexdump with sane format one 32 bit word per line
14
hdmp() {
15
    sudo hexdump -e '/4 "%08_ax - "' -e '/4 "%08X" "\n"' $1
16
}
17
18
# Tar and compress using pbzip2 which is MUCH faster on multicore systems
19
tbz() {
20
    tar -v -c --use-compress-program=pbzip2 -f ${1%/}.tar.bz2 $1
21
}
22
23
# Decompress and uncompress using pbzip2
24
tbzx() {
25
    tar -v -x --use-compress-program=pbzip2 -f $1
26
}
27
28
29
alias formatDDC="astyle -A1s4SHUk1jcz2 -n *.c *.h"
30
31
alias formatDave="astyle -A8s4SHUk3jcz2 -n *.c *.h"
32
33
</pre>