Created
July 31, 2013 06:44
-
-
Save andrewberls/6119868 to your computer and use it in GitHub Desktop.
cs bash alias
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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