# /etc/bashrc # System wide functions and aliases # Environment stuff goes in /etc/profile # by default, we want this to get set. # Even for non-interactive, non-login shells. if [ "`id -gn`" = "`id -un`" -a `id -u` -gt 99 ]; then umask 002 else umask 022 fi # are we an interactive shell? if [ "$PS1" ]; then case $TERM in xterm*) if [ -e /etc/sysconfig/bash-prompt-xterm ]; then PROMPT_COMMAND=/etc/sysconfig/bash-prompt-xterm else PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/#$HOME/~}\007"' fi ;; screen) if [ -e /etc/sysconfig/bash-prompt-screen ]; then PROMPT_COMMAND=/etc/sysconfig/bash-prompt-screen else PROMPT_COMMAND='echo -ne "\033_${USER}@${HOSTNAME%%.*}:${PWD/#$HOME/~}\033\\"' fi ;; *) [ -e /etc/sysconfig/bash-prompt-default ] && PROMPT_COMMAND=/etc/sysconfig/bash-prompt-default ;; esac # Turn on checkwinsize shopt -s checkwinsize [ "$PS1" = "\\s-\\v\\\$ " ] && PS1="[\u@\h \W]\\$ " if ! shopt -q login_shell ; then # We're not a login shell for i in /etc/profile.d/*.sh; do if [ -r "$i" ]; then . $i fi done unset i fi fi # vim:ts=4:sw=4 alias rm='rm -i' alias cp='cp -i' alias mv='mv -i' if [ `id -u` -eq 0 ]; then alias tls='tail -n 250 -f /var/log/messages' alias ctls='cat /var/log/messages|tail -n 250 ' fi alias h='history| tail -n 1000' alias cdh='cd /usr/local/jakarta-tomcat/webapps/sergio/prototipo/' alias tlc='tail -n 250 -f /usr/local/jakarta-tomcat/logs/catalina.out' # User specific aliases and functions alias cde="cd ~/pesquisa/etc/config_data/DocumentProcessor/linguistics/extractors" export SVN_EDITOR=vim #alias vn2="vncviewer :1 -passwd ~/.vnc/passwd -FullScreen >& /dev/null &" alias vn2="vncviewer :1 -passwd ~/.vnc/passwd >& /dev/null &" alias vn3="vncviewer darkstart.no-ip.org:1 -passwd ~/.vnc/passwd -FullScreen >& /dev/null &" alias wb="~/home/fast/datasearch/bin/workbench.sh" alias wbsetup="cd ~/home/fast/datasearch/bin;source setupenv.sh;cd -" alias psc='ps -ef --cols=800' alias vir='vim -R -' alias grep='grep --color' PS1="\u@\h:\w#"