Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamesmacaulay/35538 to your computer and use it in GitHub Desktop.
Save jamesmacaulay/35538 to your computer and use it in GitHub Desktop.
function bd {
if [ -z $1 ]; then
n=1
else
n=$1
fi
pushd +$n > /dev/null
}
function fd {
if [ -z $1 ]; then
n=0
else
n=$[$1-1]
fi
pushd -$n > /dev/null
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment