Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

(cont)

I also quite like,

    function mkcd {
        command mkdir -p "$1" && \
        command cd "$1" && \
        pwd
    }
I'm thinking of writing one for git clone, `git clonecd` or something, to cd into a cloned directory. Note that having an executable named `git-foo` in your $PATH lets you call it like a git subcommand, `git foo`


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: