Skip to content

Instantly share code, notes, and snippets.

@ds0nt-star-bot
Forked from ds0nt/bash-hacks.sh
Last active September 3, 2015 00:54
Show Gist options
  • Save ds0nt-star-bot/a3fb0b51619808df3b29 to your computer and use it in GitHub Desktop.
Save ds0nt-star-bot/a3fb0b51619808df3b29 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. :)
#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment