As configured in my dotfiles.
start new:
tmux
start new with session name:
| newpg=9.3.2 | |
| oldpg=9.2.4 # set this to your current PG version | |
| # Stop current Postgres server | |
| launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist | |
| # Backup current db | |
| mv /usr/local/var/postgres/ /usr/local/var/postgres-$oldpg | |
| # Homebrew |
| # Want to pass in a hash or instance of object. Was hoping to avoid is_a? or creating a new object but | |
| # think that can only be done with is_a? or overriding new. Also, I might be missing the point as | |
| # avoiding is_a? should mean I am using Duck Typing but if I'm using Duck Typing then I shouldn't be | |
| # checking object equality anyway. See RSpec test for details. | |
| class MyClass | |
| attr_accessor :name | |
| attr_accessor :description | |
| def initialize(args = {}) |
As configured in my dotfiles.
start new:
tmux
start new with session name: