Skip to content

Commit

Permalink
initial commit, will add more later
Browse files Browse the repository at this point in the history
  • Loading branch information
dmpayton committed Feb 4, 2010
0 parents commit 63674ad
Show file tree
Hide file tree
Showing 4 changed files with 74 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .bashrc
@@ -0,0 +1,34 @@
#!/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
9 changes: 9 additions & 0 deletions .hgignore
@@ -0,0 +1,9 @@
syntax: glob
.hgignore
*.pyc
dist
MANIFEST
TAGS
.svn*
*.svn*
*.DS_Store*
4 changes: 4 additions & 0 deletions .hgrc
@@ -0,0 +1,4 @@
[ui]
ignore = ~/.hgignore
ssh = ssh -q -C
username = Derek Payton <derek.payton@gmail.com>
27 changes: 27 additions & 0 deletions .inputrc
@@ -0,0 +1,27 @@
# 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

0 comments on commit 63674ad

Please sign in to comment.