Last active
April 15, 2018 13:36
-
-
Save MMachado-uy/cf3cd452f49d2e800e03ec9183c1163a to your computer and use it in GitHub Desktop.
Add style (and hours of dad-puns) to your boring git stash with this gorgeous and well trimmed git-stache
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
#!/bin/bash | |
# Add the location of this file to your path and then simply call | |
# git stache instead of your regular and dull git stash. Batteries not included. | |
_sleep() { | |
sleep 0.1 | |
} | |
if [ -d .git ]; then | |
_sleep && echo '' | |
_sleep && echo ' ~~~~ ~~~~' | |
_sleep && echo ' ~~~~~~~~ ~~~~~~~~' | |
_sleep && echo ' ~~~~~~~~~~ ~~~~~~~~~~' | |
_sleep && echo ' ~~~~~~~~~~~~~~~~~~~~~~~' | |
_sleep && echo ' ~~~~~~~~~~~~~~~~~~~~~~~~~' | |
_sleep && echo ' ~~~~~~~~~~~~~~~~~~~~~~~~~~~' | |
_sleep && echo ' ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~' | |
_sleep && echo ' ~ ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~' | |
_sleep && echo ' ~~ ~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~ ~~' | |
_sleep && echo ' ~~~ ~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~ ~~~' | |
_sleep && echo ' ~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~' | |
_sleep && echo ' ~~~~~~~~~~~~~ ~~~~~~~~~~~~~' | |
_sleep && echo ' ~~~~~~~~~~ ~~~~~~~~~' | |
_sleep && echo ' ~~~ ~~~' | |
_sleep && echo '' | |
git stash $@ | |
_sleep | |
else | |
echo "Sorry, I can't find any repos to stache here" | |
fi; |
Author
MMachado-uy
commented
Apr 12, 2018
Stache just got trimmed:
- Multi-parameter support
- Convenient sleep encapsulation in a function to save space(?)
- Prettyfied code
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment