Skip to content

Instantly share code, notes, and snippets.

@bkyle
Last active February 28, 2021 16:02
Show Gist options
  • Save bkyle/2fee402edd58f07360ea56d4be3b931b to your computer and use it in GitHub Desktop.
Save bkyle/2fee402edd58f07360ea56d4be3b931b to your computer and use it in GitHub Desktop.
Functions for the bash shell to support johnny.decimal indexes
JOHNNY_ROOT="..."
function jfind() {
(cd "${JOHNNY_ROOT}"; find [1234567890][1234567890]* $@)
}
function jls() {
(cd "${JOHNNY_ROOT}"; ls -1d [1234567890][1234567890]-*/[1234567890][1234567890]\ */[1234567890][1234567890].[1234567890][1234567890]*)
}
function jcd() {
pushd "${JOHNNY_ROOT}"/*/*/${1}*
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment