# ~/.bashrc: executed by bash(1) for non-login shells. # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) # for examples # If running interactively, then: if [ "$PS1" ]; then # don't put duplicate lines in the history. See bash(1) for more options export HISTCONTROL=ignoredups export HISTFILESIZE=10000 # enable color support of ls and also add handy aliases eval `dircolors -b` alias ls='ls --color=auto' alias ll='ls -l' alias la='ls -Al' alias l='ls -CF' alias lk='ls -Sshr' # some more ls aliases #alias dir='ls --color=auto --format=vertical' #alias vdir='ls --color=auto --format=long' # Abbreviations for useful commands alias ds='du -m --max-depth=1' alias ds2='du -m --max-depth=2' alias oo='openoffice &' alias dis='display *.jpg &' alias date='date +"%Y-%m-%d %H:%M"' #alias date="date --rfc-3339=seconds" alias pdf='xpdf -fullscreen -z width' alias rox='rox-filer &' alias sx="startx &" # Abbreviations for useful commands (*** Only for root ***) alias aupd='aptitude update' alias aupg='aptitude upgrade' alias ains='aptitude install --with-recommends' alias asrc='aptitude search' alias asho='aptitude show' alias apur='aptitude purge' alias rsd='mount /mnt/usbdisk; date; df; rsnapshot daily; date; df; umount /mnt/usbdisk' alias rsw='mount /mnt/usbdisk; date; df; rsnapshot weekly; date; df; umount /mnt/usbdisk' alias rsm='mount /mnt/usbdisk; date; df; rsnapshot monthly; date; df; umount /mnt/usbdisk' alias rsy='mount /mnt/usbdisk; date; df; rsnapshot yearly; date; df; umount /mnt/usbdisk' alias rsu='mount /mnt/usbdisk; date; df; rsnapshot du; umount /mnt/usbdisk' alias rsl='mount /mnt/usbdisk; ll /mnt/usbdisk; umount /mnt/usbdisk' # from http://linux.org.mt/article/terminal alias pss='ps -Hefw | less' export PATH=$PATH:$HOME/scripts # from Mark Constable on LAU 2004-12-25 # Only valid for root alias apt-update='apt-get update && apt-get upgrade' #alias apt-update='apt-get update && apt-get -u -d -y dist-upgrade && apt-get autoclean' alias apt-install='apt-get install' alias apt-remove='apt-get --purge remove' alias e='nano -c' #alias e='nano -w -t -x -c -R' alias edapt='e /etc/apt/sources.list' alias edbash='e ~/.bashrc' # from Bash-Beginners-Guide/sect_03_05.html at tldp.org alias ..='cd ..' alias ...='cd ../..' alias ....='cd ../../..' alias cdrecord='cdrecord -dev 0,1,2 -speed=8' alias h='history 20' alias p='pstree -p' alias xt='xterm -bg black -fg green &' # set a fancy^H^H^H^H^Hboring prompt # PS1='\u@\h:\w\$ ' # a nice coloured prompt PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' # If this is an xterm set the title to user@host:dir #case $TERM in #xterm*) # PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"' # ;; #*) # ;; #esac # enable programmable completion features (you don't need to enable # this, if it's already enabled in /etc/bash.bashrc). #if [ -f /etc/bash_completion ]; then # . /etc/bash_completion #fi fi