Skip to content

Instantly share code, notes, and snippets.

@MMachado-uy
Last active April 15, 2018 13:36
Show Gist options
  • Save MMachado-uy/cf3cd452f49d2e800e03ec9183c1163a to your computer and use it in GitHub Desktop.
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
#!/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;
@MMachado-uy
Copy link
Author

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