-
Notifications
You must be signed in to change notification settings - Fork 0
/
bashrc.nextag-nis
71 lines (52 loc) · 1.89 KB
/
bashrc.nextag-nis
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
# This .bashrc is the local config. It will call the system config, do
# some setup, call the common config, and then finish up as needed.
SYSTEM_BASHRC=/etc/bashrc # FIXME
COMMON_BASHRC=$HOME/dotfiles/bashrc.common #FIXME
# Source system config
for file in $SYSTEM_BASHRC
do
#echo "Sourcing system bashrc $file"
if [ -f $file ]; then
source $file
fi
done
# Set up some variables needed by the common config
#SSH_IDENTITY="$HOME/.ssh/id_rsa.pirate $HOME/.ssh/identity.pirate" #FIXME
# Source common config
for file in $COMMON_BASHRC
do
#echo "Sourcing common bashrc $file"
if [ -f $file ]; then
source $file
fi
done
##### begin environment variables
export CVSROOT=:pserver:troscoe@cvs:/cvsroot
##### end environment variables
##### begin aliases
### machines
### general
alias lrl='less /var/log/resin/*.log'
alias trl='tail -f /var/log/resin/*.log'
alias lal='less /var/log/httpd/access_log /var/log/httpd/error_log'
alias tal='tail -f /var/log/httpd/access_log /var/log/httpd/error_log'
alias lall='less `ls /var/log/httpd/access_log.* | tail -1` /var/log/httpd/error_log'
alias tall='tail -f `ls /var/log/httpd/access_log.* | tail -1` /var/log/httpd/error_log'
alias ltl='less /opt/tomcat/logs/catalina.out /opt/tomcat/logs/server.log '
alias ttl='tail -f /opt/tomcat/logs/catalina.out /opt/tomcat/logs/server.log `ls -tr /opt/tomcat/logs/localhost* | tail -1`'
alias nex='sudo -u nextag'
alias bnex='sudo su - nextag'
alias cc='sudo -u cc'
alias tom='sudo -u tomcat'
alias wstop='sudo -u nextag webstop'
alias wstart='sudo -u nextag webstart < /dev/null > ~/webstart.log 2>&1 && cat ~/webstart.log'
alias wbounce='wstop ; wstart'
alias tstop='sudo -u tomcat /opt/tomcat/bin/shutdown.sh'
alias tstart='sudo -u tomcat /opt/tomcat/bin/startup.sh'
alias tbounce='tstop ; tstart'
##### end aliases
##### begin other configuration
umask 0022
eval `dircolors`
unset PROMPT_COMMAND
##### end other configuration