my bash_profile is as follows, because I want my sessions to be consistent.
Code:
if [ -f ~/.bashrc ]; then
source ~/.bashrc
fi
And well, the cleaned up version of my users bashrc, here goes:
Code:
export VISUAL=/usr/bin/nano
export EDITOR=/usr/bin/nano
# aliases
alias pois='clear && logout'
alias vihreä='printf "\e[32m\n"'
alias punainen='printf "\e[31m\n"'
alias musta='printf "\e[30m\n"'
alias sininen='printf "\e[34m\n"'
alias xine-dvd='xine --auto-play --auto-scan dvd'
alias perl-module-install-MCPAN='perl -MCPAN -e shell'
alias bbslash='bbslashdot -b firefox -x 875 -y 920'
alias wwwo='cat /var/log/apace2/access_log | tail -n 100 | grep -iv localhost'
alias grassy='fbsetbg -f /share/images/wallpapers/Grassy.jpg'
alias fbwall='fbsetbg -f /share/images/wallpapers/fluxbox.img'
alias asenna='./configure && make && make install'
alias flightsim='ys' # I never remember the bin (;
# bashcomplete
bash=${BASH_VERSION%.*}; bmajor=${bash%.*}; bminor=${bash#*.}
if [ "$PS1" ] && [ $bmajor -eq 2 ] && [ $bminor '>' 04 ] \
&& [ -f /etc/bash_completion ]; then # interactive shell
# Source completion code
. /etc/bash_completion
elif [ "$PS1" ] && [ $bmajor -eq 3 ] \
&& [ -f /etc/bash_completion ]; then # interactive shell
# Source completion code
. /etc/bash_completion
fi
unset bash bmajor bminor
# PS1 moddings
PS1='[\033[01;33m\t\033[m] [\u@\h] \w# '
# allways use dircolors, even if su
eval `dircolors -b /etc/DIR_COLORS`
# if a ssh session, lets screen it
if [ "$SSH_CONNECTION" ]; then
if [ -z "$STY" ]; then
# Screen is not currently running, but we are in SSH, so start a session
exec screen -d -R -S ssh
fi
fi
# a nifty calendar software, shows me my appintments for the next 3 weeks to come upon login.
clcal -w 3
Thats about it, hoper this gave you some ideas what people do with bashrc.. (;