Slackware 13.1 - Personalise ============================ Public domain ******************************************************************************** ### /root/.bashrc # History exception HISTIGNORE="&:ls:exit" # Disable history #unset HISTFILE # Prompt PS1="\n\[\e[1;31m\]\t - \d\n\[\e[1;32m\]\u@\H:\[\e[1;36m\]\w \\$ \[\e[0m\]" # Aliases alias cp='cp -i' alias mv='mv -i' alias rm='rm -i' alias reboot='reboot;exit' alias mplayer='[ ! -e /tmp/mplayer ] && mkfifo /tmp/mplayer; mplayer -input file=/tmp/mplayer' alias ls='/bin/ls $LS_OPTIONS' # bash internal commands manual bashman() { man bash | less +/"^ $1 "; } # Colored Manual Pages export LESS_TERMCAP_mb=$(printf '\e[01;31m') # enter blinking mode - red export LESS_TERMCAP_md=$(printf '\e[01;35m') # enter double-bright mode - bold, magenta export LESS_TERMCAP_me=$(printf '\e[0m') # turn off all appearance modes (mb, md, so, us) export LESS_TERMCAP_se=$(printf '\e[0m') # leave standout mode export LESS_TERMCAP_so=$(printf '\e[01;33m') # enter standout mode - yellow export LESS_TERMCAP_ue=$(printf '\e[0m') # leave underline mode export LESS_TERMCAP_us=$(printf '\e[04;36m') # enter underline mode - cyan # PATH PATH="/usr/local/sbin:/usr/sbin:/sbin:$PATH" ******************************************************************************** ### /etc/screenrc # Personalise bindkey -k k; focus bindkey -k F1 prev bindkey -k F2 next startup_message off hardstatus alwayslastline hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{=kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B}%Y-%m-%d %{W}%c %{g}]' ******************************************************************************** ### /root/.bash_profile . ~/.bashrc #PS1="\n\[\e[0;31m\]\@ - \d\n\[\e[0;33m\]\u@\H:\[\e[0;32m\]\w\\$ \[\e[0m\]" #TMOUT="600" /usr/bin/echo /usr/bin/df -h /usr/bin/echo /usr/bin/free -m /usr/bin/echo /usr/bin/w ******************************************************************************** ### /root/.bash_logout #history -c #/bin/rm -f ~/.bash_history #/usr/bin/echo > /var/log/wtmp /usr/bin/clear ******************************************************************************** ### /etc/cron.daily/ntpdate #!/bin/bash /usr/sbin/ntpdate -v 0.pool.ntp.org 1.pool.ntp.org 2.pool.ntp.org /sbin/hwclock -w ******************************************************************************** ### Commands chmod -x /etc/profile.d/bsd-games-login-fortune.* chmod +x /etc/cron.daily/ntpdate /etc/cron.daily/ntpdate ******************************************************************************** _BY: Pejman Moghadam_ _TAG: personalise, bash, screen, ntp, prompt, bashrc_ _DATE: 2009-05-26 14:19:17_