Skip to content

Instantly share code, notes, and snippets.

@kirkland
Created February 15, 2012 15:19
Show Gist options
  • Save kirkland/1836611 to your computer and use it in GitHub Desktop.
Save kirkland/1836611 to your computer and use it in GitHub Desktop.
chpwd() {
ls
git status > /tmp/git_status_output.txt 2>&1
if [[ $? == 0 ]]; then
echo
git status
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment