Skip to content

Instantly share code, notes, and snippets.

@faddat
Forked from ds0nt/bash-hacks.sh
Last active September 3, 2015 00:52
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save faddat/53bee0a8e3639b51a3d4 to your computer and use it in GitHub Desktop.
Save faddat/53bee0a8e3639b51a3d4 to your computer and use it in GitHub Desktop.
Awesome bash hacks --- (for web devs & ninjas, for dot-file pride, for pleasing the monospace gods )
#### #### #### #### #### ####
# / ! /
# / e /
# / M /
# / /
# / k /
# / r /
# / o /
# F /
# /
# /
#
# js friendly tree
src-tree()
{
tree -I node_modules
}
# destroy all docker containers..
docker-purge()
{
docker ps -aq | while read x; do docker stop $x; docker rm $x; done
}
# customized bashrc per project -- for project-related aliases and tasks!
# for instance: https://github.com/kloudsio/klouds/blob/master/.bashrc-klouds
foo-bash()
{
bash --rcfile /code/foo/.bashrc-foo
}
#
# Let's start a collection. :)
#
@faddat
Copy link
Author

faddat commented Sep 3, 2015

Dan's bash hacks are good-- just as good as the time I discovered: https://github.com/guioconnor/Passwordless-SSH

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment