Skip to content

Instantly share code, notes, and snippets.

@yannvery
Last active December 31, 2015 05:49
Show Gist options
  • Save yannvery/7943244 to your computer and use it in GitHub Desktop.
Save yannvery/7943244 to your computer and use it in GitHub Desktop.
How to install and configure consular on OSX 10.9 ( Mavericks ). Use : rvm - ruby 2 - zsh - sublime text
# Install command line developer tools if necessary ( like if consular-item gem can't be installed )
xcode-select --install
gem install consular
gem install consular-iterm
consular init
# Open the newly created ~/.consularc file and add a require statement for your core to the top.
# The project page for each core will have this snippet. For iTerm it’s require 'consular/iterm'.
# Create a project
consular edit projectname
setup 'echo "setup"' # code to run during setup
window do
before { run 'cd ~/code/projectname' }
tab "Server" do
run "rails s"
end
tab "Console" do
run "rails c"
end
tab "git status"
run 'subl .'
run 'open open http://localhost:3000'
run 'exit'
end
ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" ~/bin/subl
# RVM users
ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" ~/.rvm/bin/subl
# Add this lines to use sublimetext as default editor
export PATH=~/bin:$PATH
export EDITOR='subl -w'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment