forked from SeanThomasWilliams/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.alias
83 lines (78 loc) · 3.49 KB
/
.alias
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
#!/bin/bash
screen-reattach(){
SESSIONNAME=${1:-tmux}
which tmux &> /dev/null
if [ $? -eq 0 ]
then
tmux -2 new -A -s $SESSIONNAME
else
screen -R -d $SESSIONNAME
fi
}
export -f screen-reattach
alias sr="screen-reattach"
export GIT_EDITOR="vim"
export GOMAXPROCS=8
export TERM=xterm-256color
export JAVA_HOME="/usr/lib/jvm/latest"
export GOROOT="/usr/lib/golang"
export GOPATH="$HOME/gocode"
export NOVETTA="$HOME/gocode/src/github.com/Novetta"
export ARES="$HOME/gocode/src/github.com/Novetta/pwcop"
export ITK="$HOME/gocode/src/github.com/Novetta/ITK"
export VIDEX="$HOME/gocode/src/github.com/Novetta/VideoEnterprise"
export ITK="$HOME/gocode/src/github.com/Novetta/ITK"
export ARES="$HOME/gocode/src/github.com/Novetta/pwcop"
export GOBIN="$GOPATH/bin"
export GO_LOGGING_CONFIG="$HOME/logging.ini"
export PATH="$HOME/bin/Sencha/Cmd:$JAVA_HOME/bin:/usr/local/bin:$HOME/bin:$GOROOT/bin:$GOBIN:$VIDEX/bin:$PATH"
export PROMPT_COMMAND="history -a; history -c; history -r; ${PROMPT_COMMAND}"
export EDITOR="/usr/bin/vim"
export C_COLON_BACKSLASH='C:${PWD//\//\\\}>'
export LD_LIBRARY_PATH="/usr/local/lib:$LD_LIBRARY_PATH"
export HISTSIZE=
export HISTFILESIZE=
export HISTFILE="$HOME/.bash_eternal_history"
alias cm="cd $NOVETTA/common"
alias dos='export PS1=$C_COLON_BACKSLASH'
alias dstatall='dstat -larm --top-io --top-latency 10'
alias fgrep="find . | awk '!/CVS|\.git|\.svn|_Stub|\.#/ {print \$0;}' | sed 's/\ /\\\ /g' | xargs grep --color=always -in "
alias gitpp="git pull --rebase && git push"
alias grepc="grep --color=always -i"
alias htop="TERM=screen htop"
alias itk="cd $ITK"
alias itkappbuild="cd $ITK/itkweb && sencha app build"
alias itkappwatch="cd $ITK/itkweb && sencha app watch"
alias itkunittest="cd $ITK/itkserver $ITK/dev/rununittests.sh"
alias itkserver="source $ITK/dev/itk_dev.env && go run $ITK/itkserver/server/server.go"
alias ls="ls -hl --color"
alias nov="cd $NOVETTA"
alias pe="cd $NOVETTA/perseus"
alias ares="cd $ARES"
alias videxappbuild="cd $VIDEX/videx2/videxweb && source ui.env && sencha app build geospatial development"
alias videxappwatch="cd $VIDEX/videx2/videxweb && source ui.env && sencha app watch geospatial development"
alias videxunittest="cd $VIDEX/videx2/videxserver $VIDEX/videx2/dev/rununittests.sh"
alias videxserver="cd $VIDEX/videx2/videxserver && go run $VIDEX/videx2/videxserver/server/server.go"
alias ve="cd $VIDEX/videx2"
alias vx="$VIDEX/videx2/dev/dev-run-executor.sh"
alias aresappbuild="cd $ARES/aresweb && sencha app build development"
alias aresappwatch="cd $ARES/aresweb && sencha app watch development"
alias aresunittest="cd $ARES/aresserver && $ARES/dev/rununittests.sh"
alias aresserver="cd $ARES/aresserver && go run $ARES/aresserver/server/server.go"
alias ar="cd $ARES"
alias gitfp="git fetch -p && git pull && git gc"
which nvim &> /dev/null && alias vim="nvim"
export PATH=/opt/rh/python27/root/usr/bin${PATH:+:${PATH}}
export LD_LIBRARY_PATH=/opt/rh/python27/root/usr/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
export MANPATH=/opt/rh/python27/root/usr/share/man:${MANPATH}
# For systemtap
export XDG_DATA_DIRS=/opt/rh/python27/root/usr/share${XDG_DATA_DIRS:+:${XDG_DATA_DIRS}}
# # For pkg-config
export PKG_CONFIG_PATH=/opt/rh/python27/root/usr/lib64/pkgconfig${PKG_CONFIG_PATH:+:${PKG_CONFIG_PATH}}
export PYTHONPATH=/usr/lib/python2.7/site-packages:/opt/rh/python27/root/usr/lib64/python2.7/site-packages
if [[ -f "$HOME/.videx.env" ]]; then
source $HOME/.videx.env
fi
if [[ -f "$HOME/.local.alias" ]]; then
source $HOME/.local.alias
fi