Brian's Dot-files
Dot-Bashrc
Mostly I’ve got my apt-get short cut aliases in here, for apt-get update (agud), etc...
Note terminal set to “\W” instead of “\w” to show only current dir in prompt.
# ~/.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 not running interactively, don't do anything
[ -z "$PS1" ] && return
# 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
# make less more friendly for non-text input files, see lesspipe(1)
[ -x /usr/bin/lesspipe ] && eval "$(lesspipe)"
# set variable identifying the chroot you work in
if [ -z "$debian_chroot" -a -r /etc/debian_chroot ]; then
debian_chroot=$(cat /etc/debian_chroot)
fi
# set a fancy prompt (non-color, unless we know we "want" color)
case "$TERM" in
xterm-color)
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
;;
*)
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\W\$ '
;;
esac
# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
;;
*)
;;
esac
# 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
# enable bash completion in interactive shells
if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
export KDEDIR=/usr
export QTDIR=/usr/share/qt3
[ -f /etc/bashrc ] && . /etc/bashrc
[ -f /etc/profile ] && . /etc/profile
# 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.
alias ls='ls --color=auto'
alias acs='apt-cache search'
alias acsh='apt-cache show'
alias agud='sudo apt-get update'
alias agug='sudo apt-get upgrade'
alias agi='sudo apt-get install'
alias agr='sudo apt-get remove'
alias agc='sudo apt-get clean'
Dot-Bash_Profile
# ~/.bash_profile: executed by bash(1) for login shells.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.
# the default umask is set in /etc/login.defs
#umask 022
# include .bashrc if it exists
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# the rest of this file is commented out.
# set PATH so it includes user's private bin if it exists
if [ -d ~/bin ] ; then
PATH=~/bin:"${PATH}"
fi
# do the same with MANPATH
#if [ -d ~/man ]; then
# MANPATH=~/man${MANPATH:-:}
# export MANPATH
#fi
Dot-Screenrc
# change default Ctrl-a escape
# function key to Ctrl-j
escape "^j^j"
# window list now 'C-j l'
bind 'l' windowlist -b
# ctrl + left/right arrow keys
# test with: cat > /dev/null (enter keystrokes)
##bindkey ^[[D prev
##bindkey ^[[C next
bindkey ^[05D prev
bindkey ^[05C next
Dot-Ssh
Dot-Vimrc
" Here are John's
" vimrc settings on phoenix
syntax on " turn on syntax coloring
set viminfo="~/.viminfo" " saves marks/setting between sessions
set nohls " turn off highlight on search
colo evening " change the colorscheme
"colo elflord " change the colorscheme
"set ts=4
"set sw=4
"set sts=4
"set expandtab
"
" AUTO-COMMANDS
" for plain text
autocmd BufEnter *.txt set noet ts=8 sw=8 wm=10 nocindent
" for Makefiles
autocmd BufEnter ?akefile* set noet ts=8 sw=8
" for C/C++ code
autocmd BufEnter *.cpp,*.h,*.c,*.java,*.cgi,*.pl,*.css set et ts=4 sw=4 wm=0 cindent
" for html
autocmd BufEnter *.html set et ts=4 sw=4 wm=10 nocindent