forked from dsopscak/basic_env
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.bashrc
More file actions
55 lines (40 loc) · 782 Bytes
/
.bashrc
File metadata and controls
55 lines (40 loc) · 782 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
#
# Last thing below is like above for local. Consider putting peculiar
# stuff in .bashrc_local instead of adding things to this.
#
alias sudo='sudo env PATH=$PATH'
set -o vi
PS1='\h:\w [\!] '
export EDITOR=vi
alias ls='ls -p --color'
alias myps='ps aux | grep $USER'
alias myipcs='ipcs | grep $USER'
alias dir='ls -lh'
alias cls=clear
alias md=mkdir
alias rd=rmdir
alias ll='ls -latr'
function apath()
{
export PATH=$PATH:$1
}
function ppath()
{
export PATH=$1:$PATH
}
function mktl()
{
/bin/ls $@ | sed -e 's/\.[^\.]*//g'
}
function cp_nodots()
{
rsync -a --exclude='.*' "$1" "$2"
}
if [ -f ~/.bashrc_local ]; then
. ~/.bashrc_local
fi