home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
chilidog.highland.cc.ks.us
/
chilidog.highland.cc.ks.us.zip
/
chilidog.highland.cc.ks.us
/
backup
/
bradford.20100913.root.tar.gz
/
bradford.20100913.root.tar
/
root
/
.bashrc.bak
< prev
next >
Wrap
Text File
|
2007-12-17
|
3KB
|
99 lines
#
# .kshrc - Mike Gadoury
#
# to set my prompt, aliases, key bindings, ... etc.
#
# Bash knows 3 diferent shells: normal shell, interactive shell, login shell.
# ~/.bashrc is read for interactive shells and ~/.profile is read for login
# shells. We just let ~/.profile also read ~/.bashrc and put everything in
# ~/.bashrc.
# This sets a generic ksh prompt. Note that PS1 is set in a few places.
export DISPLAY LESS PS1 PS2
TTYNAME=$(tty) && TTY=$(basename $TTYNAME)
#-----------------------------------------------------------------------------
alias cd=_cd
function _cd
{
\cd $*
if [ "$TERM" != "vt100" ]
then
ls -CAGghrlt
fi
set_prompt
}
alias sysinfo=_yams_info
#-----------------------------------------------------------------------------
function set_prompt
{
# Black 0;30 Dark Gray 1;30
# Blue 0;34 Light Blue 1;34
# Green 0;32 Light Green 1;32
# Cyan 0;36 Light Cyan 1;36
# Red 0;31 Light Red 1;31
# Purple 0;35 Light Purple 1;35
# Brown 0;33 Yellow 1;33
# Light Gray 0;37 White 1;37
# PS1="\n\u@\h:${PWD}\n> "
PS1="\n\[\033[1;32m\]$CM_TYPE_BRANDED\[\033[0m\]\n\[\033[1;31m\]\u@\h:${PWD}\n> \[\033[0m\]"
export PS1
}
#-----------------------------------------------------------------------------
# directory jumps
# ---------------
alias yams=" cd $LOCAL_NODE/$YAMS_PROJECT"
alias yams_dist="cd $YAMS_DIST"
alias master="cd $YAMS_DIST/master_loader"
alias nessus="cd $YAMS_DIST/nessus_loader"
alias slave="cd $YAMS_DIST/slave_loader_1"
alias probe="cd $YAMS_DIST/probe_loader_1"
alias quar="cd $YAMS_DIST/quarantine_loader"
alias control="cd $YAMS_DIST/control_manager"
alias reg="cd $YAMS_DIST/registration_loader"
alias bin="cd $YAMS_DIST/bin"
alias tom="cd $YAMS_DIST/../services/tomcat-admin/logs"
alias cli="cd $YAMS_DIST/cli"
alias runtime="cd $YAMS_DIST/ui/runTime"
alias www="cd $YAMS_DIST/../www"
alias REG="cd $YAMS_DIST/../Registration/registration"
alias REM="cd /bsc/Remediation/remediation"
alias up="cd /bsc/campusMgrUpdates"
alias config="cd $YAMS_DIST/../siteConfiguration"
alias logs="cd $YAMS_DIST/../logs"
# keystroke savers
# ----------------
alias du='du -sk'
alias nm='nm -Bo'
alias df="df -k"
alias h="history | sort -r -b +1 -u | sort | tail"
alias ps1="lpr -Pps1"
alias qps1="lpq -Pps1"
alias l='ls -CFA'
alias ll='ls -CFlAsrt'
alias su="su -"
alias v=vi
alias make=gmake
alias bscftp='ftp www.bradford-sw.com'
alias pico='nano'
alias tf="tail -f"
alias raid="/opt/AMCC/CLI/tw_cli /c0"
export CDPATH=".:${HOME}:$LOCAL_NODE:$LOCAL_NODE/$YAMS_PROJECT"
set_prompt
export PS1