Commits

Derek Payton committed ef801c4

initial commit, will add more later

  • Participants

Comments (0)

Files changed (4)

+#!/bin/bash
+
+# I like confirming destructive operations.
+alias cp="cp -iv"
+alias mv="mv -iv"
+alias rm="rm -iv"
+
+# Colored output from ls is nice, but the default color choices need
+# work for use on a dark/partially transparent background. Directories
+# stay blue but get bold, and symbolic links get bold cyan instead of
+# magenta.
+export CLICOLOR=1
+export LSCOLORS="ExGxcxdxbxegedabagacad"
+
+# Hooray Nano!
+export EDITOR=nano
+
+# Prompt is not as complicated as the format string would
+# suggest. This one does:
+#
+# (time) user@host:dir $
+#
+# with user/host in green and working directory blue.
+# The first one sets the terminal title, the second is the prompt.
+export PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]"
+export PS1="$PS1(\[\e[0;37m\]\A\[\e[0;37m\]) \[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\] \$ "
+
+# Env variables and functions for virtualenvwrapper.
+export WORKON_HOME=$HOME/dev/virtualenvs
+#. $HOME/bin/virtualenvwrapper_bashrc
+
+# Some useful additional completion.
+#. $HOME/dev/django/svn/django/trunk/extras/django_bash_completion
+#. $HOME/bin/hg_completion
+syntax: glob
+.hgignore
+*.pyc
+dist
+MANIFEST
+TAGS
+.svn*
+*.svn*
+*.DS_Store*
+[ui]
+ignore = ~/.hgignore
+ssh = ssh -q -C
+username = Derek Payton <derek.payton@gmail.com>
+# from http://www.macosxhints.com/comment.php?mode=view&cid=72187
+
+# this makes the "delete" key work rather than
+# just entering a ~
+"\e[3~": delete-char
+
+# these allow you to use ctrl+left/right arrow keys
+# to jump the cursor over words
+"\e[5C": forward-word
+"\e[5D": backward-word
+
+# these allow you to start typing a command and
+# use the up/down arrow to auto complete from
+# commands in your history
+"\e[B": history-search-forward
+"\e[A": history-search-backward
+
+# this lets you hit tab to auto-complete a file or
+# directory name ignoring case
+set completion-ignore-case On
+
+# I'm not sure what keys these are!
+"\e[1~": beginning-of-line
+"\e[4~": end-of-line
+"\e[5~": beginning-of-history
+"\e[6~": end-of-history
+"\e[2~": quoted-insert