Skip to content

Instantly share code, notes, and snippets.

@andrewberls
Created July 31, 2013 06:44
Show Gist options
  • Save andrewberls/6119868 to your computer and use it in GitHub Desktop.
Save andrewberls/6119868 to your computer and use it in GitHub Desktop.
cs bash alias
# Run git status if in git repo, else ls -la
function cs {
clear
if ! git ls-files >& /dev/null
then
ls -la
else
git status
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment