No description or website provided.
C++ Makefile
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
LICENSE.txt
Makefile
README.md
compress_cwd.cc
loaded_keys.cc
smartcd.cc

README.md

These are various tools that I install into my $PATH that I find useful.

compress_cwd

This compressed the value of $PWD so that it's not too long. I use this as an alternative to \w in my prompt.

smartcd

This efficiently searches $GOPATH to find a Go project. Recommended usage is something like this:

gocd() {
    if [ -z "${GOPATH}" ]; then
        return 1;
    fi
    local best=$(_smartcd "${GOPATH}/src" "$1")
    if [ -n "$best" ]; then
        cd "$best"
    else
        return 1
    fi
}

loaded_keys

This prints out what SSH keys I have loaded in a form suitable to put in my prompt.