Initial commit.

This commit is contained in:
Jonathan Harker 2012-09-28 02:24:04 +01:00
commit 0658661220
25 changed files with 1104 additions and 0 deletions

15
skel/.bash_logout Normal file
View file

@ -0,0 +1,15 @@
# ~/.bash_logout: executed by bash(1) when login shell exits.
# Set title bar to something sensible.
case $TERM in
*xterm*)
echo -e "\033]0;xterm\007"
;;
esac
# when leaving the console clear the screen to increase privacy
case "`tty`" in
/dev/tty[0-9]) clear
esac

46
skel/.bash_profile Normal file
View file

@ -0,0 +1,46 @@
# ~/.bash_profile: executed by bash(1) for login shells.
#
# Positive Internet User Package version - note that you
# shouldn't customise this, since it will get overwritten
# with a new version from your package. If you want local
# actions on this machine put them into ~/.bash_profile_local
# which is sourced at the end, if it is present.
#
DEBVERSION="`cat /etc/debian_version`"
UTFVERSION="3.1"
versions() {
cat /etc/debian_version
echo ${UTFVERSION}
}
if [ "`versions | sort | head -n 1`" = "${UTFVERSION}" ] ; then
if locale -a | grep -q -i '^en_NZ\.UTF-*8$' ; then
LC_COLLATE=POSIX
export LC_COLLATE
LC_CTYPE=POSIX
export LC_CTYPE
LANG=en_NZ.UTF-8
export LANG
else
echo "Warning: locale 'en_NZ.UTF-8' is not available on this host" >&2
fi
fi
# set PATH so it includes user's private bin if it exists
if [ -d ~/bin ] ; then
PATH=~/bin:"${PATH}"
fi
# include .bash_profile_local if it exists
if [ -f ~/.bash_profile_local ]; then
. ~/.bash_profile_local
fi
# include .bashrc if it exists
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

66
skel/.bashrc Normal file
View file

@ -0,0 +1,66 @@
# ~/.bashrc: executed by bash(1) for non-login shells.
#
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
#
# Positive Internet User Package version - note that you
# shouldn't customise this, since it will get overwritten
# with a new version from your package. If you want local
# actions on this machine put them into ~/.bashrc_local
# which is sourced at the end, if it is present.
#
# If running interactively, then:
if [ "$PS1" ]; then
# don't put duplicate lines in the history. See bash(1) for more options
export HISTCONTROL=ignoredups
# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
#shopt -s checkwinsize
# 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
# some more ls aliases
#alias ll='ls -l'
#alias la='ls -A'
#alias l='ls -CF'
# set a fancy prompt
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
# 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
# Set a colourful prompt on production machines
if [ "$ROLE" == "production" ]; then
PS1="\[\e[31;1m\]$PS1\[\e[0m\]"
fi
fi
# include .bashrc_local if it exists
if [ -f ~/.bashrc_local ]; then
. ~/.bashrc_local
fi

34
skel/.inputrc Normal file
View file

@ -0,0 +1,34 @@
# Be 8 bit clean.
set input-meta on
set output-meta on
# Allow 8-bit characters to be input because we like that
set convert-meta off
# We're only modifying the emacs mode
$if mode=emacs
"\e[1~": beginning-of-line
"\e[4~": end-of-line
# allow the use of the Delete/Insert keys
"\e[3~": delete-char
"\e[2~": quoted-insert
# alternate mappings for "page up" and "page down" to search the history
"\e[5~": history-search-backward
"\e[6~": history-search-forward
# # mappings for Ctrl-left-arrow and Ctrl-right-arrow for word moving
"\e[5C": forward-word
"\e[5D": backward-word
# uxterm and xterm mappings for Ctrl-left-arrow and Ctrl-right-arrow
"\e[1;5C": forward-word
"\e[1;5D": backward-word
# allow the use of the Home/End keys
"\eOH": beginning-of-line
"\eOF": end-of-line
$endif

11
skel/.vimrc Normal file
View file

@ -0,0 +1,11 @@
:set nocompatible
:set ts=2
:set sw=2
:set sta
:set sts=2
:set sr
:set et
:set si
:set gfn=Arial\ Monospaced\ 9
:set lsp=1
:set ghr=160