-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bashrc.bak
55 lines (47 loc) · 1.28 KB
/
.bashrc.bak
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
# .bashrc
# User specific aliases and functions
if [ -e /usr/share/terminfo/x/xterm-256color ]; then
export TERM='xterm-256color'
else
export TERM='xterm-color'
fi
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
alias ls='ls --color=auto'
alias ll='ls -al'
alias g='git'
alias mk='make'
alias v='vim'
alias mkt='make test'
alias mkb='make build'
alias grep='grep --color'
alias ports='netstat -tulanp'
## pass options to free ##
alias meminfo='free -m -l -t'
## get top process eating memory
alias psmem='ps auxf | sort -nr -k 4'
alias psmem10='ps auxf | sort -nr -k 4 | head -10'
## get top process eating cpu ##
alias pscpu='ps auxf | sort -nr -k 3'
alias pscpu10='ps auxf | sort -nr -k 3 | head -10'
## Get server cpu info ##
alias cpuinfo='lscpu'
## older system use /proc/cpuinfo
##alias cpuinfo='less /proc/cpuinfo'
#### get GPU ram on desktop / laptop##
alias gpumeminfo='grep -i --color memory /var/log/Xorg.0.log'
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
export VISUAL='vim'
PATH=$PATH:$HOME/bin
export PATH=/opt/edge2api:$PATH
export PATH=/opt/edgelang/bin:$PATH
export PATH=/opt/sregex:$PATH
export PATH=/opt/stapxx:$PATH
export PATH=/opt/lemplate:$PATH
export PATH=/opt/openresty-devel-utils:$PATH
export LC_ALL=en_US.UTF-8
export GPG_TTY=$(tty)