Skip to content

Instantly share code, notes, and snippets.

@gecko655
Created October 12, 2018 16:41
Show Gist options
  • Save gecko655/588504b63e586804e7b007a58f8fe0d8 to your computer and use it in GitHub Desktop.
Save gecko655/588504b63e586804e7b007a58f8fe0d8 to your computer and use it in GitHub Desktop.
他のプロセスが居るとしぬ
git-clone-and-cd() {
before=`ls -1`
git clone "$1"
cd `diff --new-line-format="%L" \
--old-line-format="" \
--unchanged-line-format="" \
<(echo "$before") <(ls -1)`
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment