echo $(date +”%m_%d_%Y”)
Rewrite as
echo (date +”%m_%d_%Y”)
| #!/bin/sh | |
| # To reinstall this script in the same or another git repo run: | |
| # curl -sSL https://gist.githubusercontent.com/elliotthilaire/cef91754bb296d67e776/raw/pre-push > .git/hooks/pre-push; chmod +x .git/hooks/pre-push | |
| # check that pronto is installed | |
| hash pronto 2>/dev/null || { | |
| echo >&2 "Pronto is not installed. Install with 'gem install pronto pronto-rubocop'"; | |
| echo >&2 "Find other Pronto runners at https://github.com/mmozuras/pronto#runners"; | |
| exit 0; |
| #!/bin/bash | |
| APP_NAME="your-app-name-goes-here" | |
| APP_PATH=/home/deploy/${APP_NAME} | |
| # Production environment | |
| export RAILS_ENV="production" | |
| # This loads RVM into a shell session. Uncomment if you're using RVM system wide. | |
| # [[ -s "/usr/local/lib/rvm" ]] && . "/usr/local/lib/rvm" |
| # Add this to your .bash_profile file. | |
| # Assumes you are running a OSX, using the default Terminal.app, and have Homebrew (for its custom theme) installed. | |
| # Inspiration from: https://gist.github.com/porras/5856906 | |
| function colorssh() { | |
| # Change the theme of Terminal.app | |
| osascript -e "tell application \"Terminal\" to set current settings of front window to settings set \"Homebrew\""; | |
| # Run the `ssh` command | |
| ssh $* |