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 >
Text File  |  2007-12-17  |  3KB  |  99 lines

  1. #
  2. # .kshrc  -  Mike Gadoury
  3. #
  4. # to set my prompt, aliases, key bindings, ... etc.
  5. #
  6. # Bash knows 3 diferent shells: normal shell, interactive shell, login shell.
  7. # ~/.bashrc is read for interactive shells and ~/.profile is read for login
  8. # shells. We just let ~/.profile also read ~/.bashrc and put everything in
  9. # ~/.bashrc.
  10.  
  11.  
  12. # This sets a generic ksh prompt.   Note that PS1 is set in a few places.
  13.  
  14. export DISPLAY LESS PS1 PS2
  15.  
  16.  
  17. TTYNAME=$(tty) && TTY=$(basename $TTYNAME)
  18.  
  19. #-----------------------------------------------------------------------------
  20.  
  21. alias  cd=_cd
  22.  
  23. function _cd
  24. {
  25.        \cd $*
  26. if [ "$TERM" != "vt100" ]
  27. then
  28.         ls -CAGghrlt
  29. fi
  30.  
  31.         set_prompt
  32. }
  33.  
  34. alias sysinfo=_yams_info
  35. #-----------------------------------------------------------------------------
  36.  
  37. function set_prompt
  38. {
  39. #       Black       0;30     Dark Gray     1;30
  40. #       Blue        0;34     Light Blue    1;34
  41. #       Green       0;32     Light Green   1;32
  42. #       Cyan        0;36     Light Cyan    1;36
  43. #       Red         0;31     Light Red     1;31
  44. #       Purple      0;35     Light Purple  1;35
  45. #       Brown       0;33     Yellow        1;33
  46. #       Light Gray  0;37     White         1;37
  47.  
  48. #    PS1="\n\u@\h:${PWD}\n> "
  49.     PS1="\n\[\033[1;32m\]$CM_TYPE_BRANDED\[\033[0m\]\n\[\033[1;31m\]\u@\h:${PWD}\n> \[\033[0m\]"
  50.     export PS1
  51. }
  52.  
  53. #-----------------------------------------------------------------------------
  54.  
  55.                                                              #  directory jumps
  56.                                                              #  ---------------
  57. alias yams=" cd $LOCAL_NODE/$YAMS_PROJECT"
  58. alias yams_dist="cd $YAMS_DIST"
  59. alias master="cd $YAMS_DIST/master_loader"
  60. alias nessus="cd $YAMS_DIST/nessus_loader"
  61. alias slave="cd $YAMS_DIST/slave_loader_1"
  62. alias probe="cd $YAMS_DIST/probe_loader_1"
  63. alias quar="cd $YAMS_DIST/quarantine_loader"
  64. alias control="cd $YAMS_DIST/control_manager"
  65. alias reg="cd $YAMS_DIST/registration_loader"
  66. alias bin="cd $YAMS_DIST/bin"
  67. alias tom="cd $YAMS_DIST/../services/tomcat-admin/logs"
  68. alias cli="cd $YAMS_DIST/cli"
  69. alias runtime="cd $YAMS_DIST/ui/runTime"
  70. alias www="cd $YAMS_DIST/../www"
  71. alias REG="cd $YAMS_DIST/../Registration/registration"
  72. alias REM="cd /bsc/Remediation/remediation"
  73. alias up="cd /bsc/campusMgrUpdates"
  74. alias config="cd $YAMS_DIST/../siteConfiguration" 
  75. alias logs="cd $YAMS_DIST/../logs" 
  76.                                                             #  keystroke savers
  77.                                                             #  ----------------
  78. alias du='du -sk'
  79. alias nm='nm -Bo'
  80. alias df="df -k"
  81. alias h="history | sort -r -b +1 -u | sort | tail"
  82. alias ps1="lpr -Pps1"
  83. alias qps1="lpq -Pps1"
  84. alias l='ls -CFA'
  85. alias ll='ls -CFlAsrt'
  86. alias su="su -"
  87. alias v=vi
  88. alias make=gmake
  89. alias bscftp='ftp www.bradford-sw.com'
  90. alias pico='nano'
  91. alias tf="tail -f"
  92. alias raid="/opt/AMCC/CLI/tw_cli /c0"
  93.  
  94.  
  95. export CDPATH=".:${HOME}:$LOCAL_NODE:$LOCAL_NODE/$YAMS_PROJECT"
  96.  
  97. set_prompt
  98. export PS1
  99.