My linux personalisations

By | January 25, 2011

.bashrc

# .bashrc

# User specific aliases and functions

alias rm=’rm -i’
alias cp=’cp -i’
alias mv=’mv -i’

# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi


.bashrc_profile

# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin

export PATH


/etc/profile.d/grep.sh
export GREP_OPTIONS=’–color=auto’


/etc/nanorc

## Constantly display the cursor position in the statusbar. Note that
## this overrides “quickblank”.
set const
## Don’t wrap text at all.
set nowrap
## Fix numeric keypad key confusion problem.
set rebindkeypad
## Make the Home key smarter. When Home is pressed anywhere but at the
## very beginning of non-whitespace characters on a line, the cursor
## will jump to that beginning (either forwards or backwards). If the
## cursor is already at that position, it will jump to the true
## beginning of the line.
set smarthome
## Use smooth scrolling as the default.
set smooth
## Enable soft line wrapping (AKA full line display).
set softwrap
## Use this tab size instead of the default; it must be greater than 0.
set tabsize 3
## Use the blank line below the titlebar as extra editing space.
set morespace

##########################################################
#
# Make sure you’ve downloaded all the required .nanorc files mentioned below.
#
##########################################################
## Nanorc files
include “/usr/share/nano/nanorc.nanorc”
## C/C++
include “/usr/share/nano/c.nanorc”
## Makefiles
include “/usr/share/nano/makefile.nanorc”
## Cascading Style Sheets
include “/usr/share/nano/css.nanorc”
## Debian files
include “/usr/share/nano/debian.nanorc”
## Gentoo files
include “/usr/share/nano/gentoo.nanorc”
## HTML
include “/usr/share/nano/html.nanorc”
## PHP
include “/usr/share/nano/php.nanorc”
## TCL
include “/usr/share/nano/tcl.nanorc”
## TeX
include “/usr/share/nano/tex.nanorc”
## Quoted emails (under e.g. mutt)
include “/usr/share/nano/mutt.nanorc”
## Patch files
include “/usr/share/nano/patch.nanorc”
## Manpages
include “/usr/share/nano/man.nanorc”
## Groff
include “/usr/share/nano/groff.nanorc”
## Perl
include “/usr/share/nano/perl.nanorc”
## Python
include “/usr/share/nano/python.nanorc”
## Ruby
include “/usr/share/nano/ruby.nanorc”
## Java
include “/usr/share/nano/java.nanorc”
## Fortran
include “/usr/share/nano/fortran.nanorc”
## Objective-C
include “/usr/share/nano/objc.nanorc”
## OCaml
include “/usr/share/nano/ocaml.nanorc”
## AWK
include “/usr/share/nano/awk.nanorc”
## Assembler
include “/usr/share/nano/asm.nanorc”
## Bourne shell scripts
include “/usr/share/nano/sh.nanorc”
## POV-Ray
include “/usr/share/nano/pov.nanorc”
## XML-type files
include “/usr/share/nano/xml.nanorc”