This file contains hidden or 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
| # Source: found somewhere on the web... | |
| # Simply add below script to your .zshrc file | |
| aws-profile () { | |
| if [ "$1" = "--help" ] || [ "$1" = "-h" ]; then | |
| echo "USAGE:" | |
| echo "aws-profile <- print out current value" | |
| echo "aws-profile PROFILE_NAME <- set PROFILE_NAME active" | |
| echo "aws-profile --unset <- unset the env vars" | |
| elif [ -z "$1" ]; then |
This file contains hidden or 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
| // Style 1 | |
| // Export all manually | |
| // Good: Calling functions inside the module is convenient | |
| // Bad: module.exports becomes verbose and it's tedious to add new functions | |
| function a() { | |
| b() | |
| } |