# If not running interactively, don't do anything [ -z "$PS1" ] && return # check the window size after each command and, if necessary, # update the values of LINES and COLUMNS. #shopt -s checkwinsize # set prompt PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' # set win title case "$TERM" in xterm*|rxvt*) PROMPT_COMMAND='echo -ne "\033]0;${PWD/$HOME/~}\007"' ;; *) ;; esac # Alias definitions. # You may want to put all your additions into a separate file like # ~/.bash_aliases, instead of adding them here directly. # See /usr/share/doc/bash-doc/examples in the bash-doc package. #if [ -f ~/.bash_aliases ]; then # . ~/.bash_aliases #fi # enable color support of ls and also add handy aliases if [ "$TERM" != "dumb" ]; then eval "`dircolors -b`" #alias ls='ls --color=auto' #alias dir='ls --color=auto --format=vertical' #alias vdir='ls --color=auto --format=long' fi #============================ # FRM aliases #============================ # dir navigation alias l='ls --color=auto -CF -lh --group-directories-first' alias ll='ls --color=auto -CF -lh --group-directories-first' alias ldir='ls --color=auto -CF -lh | grep ^d' # selects only ls' items which are directories alias ls='ls --color=auto -CF -h --g' alias ..='cd ..' alias ...='cd ../..' alias ....='cd ../../..' alias .....='cd ../../../..' alias nosym='cd `pwd -P`' # no symlinks! alias du='du -hs' alias df='df -h' # version control alias cvsup='cvs -q -z9 update -P -d' # cvs update alias cvsuc='cvs -q -z9 update -C' # cvs update clean alias cvsstat='cvsu | grep ^[^?] | grep -v .pch | grep -v .deps' # uses cvsu PERL script alias cvsdiff='cvsdo diff' # uses cvsdo PERL script alias svnup='svn up' # just for simmetry with cvsup alias svnuc='svn revert -R . && svn up' # svn update clean alias svnstat='svn status -q' alias svndiff='svn diff --diff-cmd="diff" --extensions="-buw"' # ignore blanks!! # object symbols alias searchsym='nm -A *.a | grep ' # ssh # NB: the -X option allows automatic X11 forwarding; # i.e. there won't be the need to set manually # the DISPLAY env variable to do it!! alias sshsf='ssh -X frm@shell.sourceforge.net' alias sshing='ssh -X frm@genius.ing.unimo.it' # misc alias k='kate -u' alias b='dolphin .' # browse here ##alias g='grep --exclude=.* --exclude=.svn -nR' # grep here recursively showing line numbers # replaced by the 'g' linux script which correctly avoid .svn folders alias c='grep --exclude=.* --exclude=.svn -nRc' # grep here recursively only showing number of matches alias f='find . -name' # find here (use double quotes for the argument) alias picomybash='pico ~/.bashrc' alias bin2c='wxlua /usr/local/bin/bin2c' # only work with cvsdiff: alias nospaces='export DIFFCMD="-b -U 2"' alias keepspaces='export DIFFCMD="-U 2"' # this makes TAB key autocomplete the command line instead of showing the list # of possible completions bind '"\t":menu-complete' # use shift+TAB for default bash mode: show list of ambiguos completions bind '"\x1b\x5b\x5a": possible-completions' # this makes it possible to use SHIFT+ENTER to launch commands in the form: # ( cmd & ) # rather than # cmd # This suppresses the job control asynchronous messages and any error message # coming from the program... bind '"\x1b\x4f\x4d"':"\"\001(\005 >/dev/null 2>&1 &)\r\"" # PgUp shows last 20 commands bind '"\e[5~"':"\"history | tail -20\C-m\"" # enable programmable completion features (you don't need to enable # this, if it's already enabled in /etc/bash.bashrc and /etc/profile # sources /etc/bash.bashrc). #if [ -f /etc/bash_completion ]; then # . /etc/bash_completion #fi [[ -f "/home/frm/.config/autopackage/paths-bash" ]] && . "/home/frm/.config/autopackage/paths-bash" # This line was appended by KDE # Make sure our customised gtkrc file is loaded. # (This is no longer needed from version 0.8 of the theme engine) # export GTK2_RC_FILES=$HOME/.gtkrc-2.0 # by default when taking patches we don't want whitespace to be considered! nospaces # put the hhc.exe compiler in the path PATH=$PATH:~/.wine/drive_c/Programmi/HTMLHelpWorkshop export PATH