Please bear with us as we work to restore functionality to dotfiles.org.
A few important things extracted from my bash configuration (which is based on the skeleton config). The sandboxing mechanism is basically an improved dropbox.
# don't put duplicate lines in the history. See bash(1) for more options
export HISTCONTROL=ignoredups
export HISTFILESIZE=10000
export HISTSIZE=10000
shopt -s histappend histverify
# options
set -o notify
export IGNOREEOF=1
shopt -s no_empty_cmd_completion
# cloak some paths
PS1='${debian_chroot:+($debian_chroot) }\u@\h:`echo "\w"|sed -r "{s/^\~\\/sandbox\\/?/_/;s/^\~\\/svn\\/?/\&/;s/^\\/www\\/?/@/}"`\$ '
function tmp() {
if [ $# -gt 0 ]; then cd `mktemp -dt $1.XXXXX`
else cd `mktemp -d`
fi
}
# originally located in .bash_aliases
# get up
alias cd..="cd .."
alias ..="cd .."
alias ...="cd ../.."
# security measures
alias mv="mv -i"
alias cp="cp -i"
# desktop
alias dop="cd ~/Desktop/"
### source .bash_sandbox:
#!/bin/bash
# sandboxing mechanism
sandbox=~/sandbox
# navigation
function sandbox() {
dir="$sandbox/$1"
mkdir -p "$dir"
cd "$dir"
if [ $# -gt 1 ]; then
vim `echo -- "$*"|cut -d" " -f3-`
fi
}
alias ndbox="sandbox"
# completion
_sandbox_safe=$(echo "$sandbox"|sed "s/\//\\\\\//g")
_sandbox_comp() {
if [ $COMP_CWORD -eq 1 ]; then
if [ "x$2" = "x" ]; then
COMPREPLY=( $(ls -1p "$sandbox"|grep /|map basename) )
else
COMPREPLY=( $(ls -1dp "$sandbox/$2"*|grep /|map basename) )
fi
elif [ $COMP_CWORD -eq 2 ]; then
dir=${COMP_WORDS[1]}
COMPREPLY=( $(cd / && find "$sandbox/$dir" -wholename "$sandbox/$dir/$2*"|sed -r "s/^$_sandbox_safe\/$dir\/?//") )
fi
}
complete -F _sandbox_comp sandbox ndbox