Skip to content

Instantly share code, notes, and snippets.

@loomsen
Created June 19, 2014 14:09
Show Gist options
  • Save loomsen/ea8328f963aa8ce44be1 to your computer and use it in GitHub Desktop.
Save loomsen/ea8328f963aa8ce44be1 to your computer and use it in GitHub Desktop.
#!/bin/bash
# colors
green=$(echo -e "\e[0;32m")
no_col=$(echo -e "\e[0;0m")
foobar() {
cat <<-end_of_foobar
${green}foo ${no_col} bar
${green}baz ${no_col} qux
end_of_foobar
}
foobar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment