-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbashrc
More file actions
36 lines (27 loc) · 660 Bytes
/
bashrc
File metadata and controls
36 lines (27 loc) · 660 Bytes
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
# $HOME/.bashrc: non-login shell bash config
if [ -f /etc/bashrc ]; then
source /etc/bashrc
fi
if [ -f /etc/profile ]; then
source /etc/profile
fi
if [ -f "$HOME/.bash_aliases" ]; then
. "$HOME/.bash_aliases"
fi
export HISTCONTROL=ignoredups:erasedups
function itermtitle () {
# The 0 is the mode: 0 - tab and window; 1 - tab; 2 - window
echo -ne "\033]0;$@\007"
}
function grepp () {
echo "Grepping for $@"
grep -R --include="*.py" "$@" * ;
}
function grepa () {
echo "Grepping for $@"
grep -R --include="*.as" "$@" * ;
}
function grepj () {
echo "Grepping for $@"
grep -R --include="*.coffee" --include="*.js" "$@" * ;
}