Lately I’ve changed the way I manage the code on my Rails projects; this is the overview on how I did it for the past two years.
I’ve used vim since my first programming job eight years ago. I’ve use it for email, papers, programming, notes—anything. I instinctively hit
escape when I finish typing; my blog posts are filled with
.vimrc represents five jobs and the seven programming languages used in those.
So, of course, my text editor for Rails was vim.
The next issue was that I had to bounce between editing files in five directories; running
After a bunch of customization, this is what I have:
alias scrails='screen -c ~/.screenrc-rails'
hardstatus alwayslastline %w screen -t controllers 0 sh -c 'cd app/controllers; zsh' screen -t models 1 sh -c 'cd app/models; zsh' screen -t views 2 sh -c 'cd app/views; zsh' screen -t project 3 screen -t db 4 screen -t public 5 sh -c 'cd public; zsh' screen -t schemae 6 sh -c 'cd db/migrate; zsh' screen -t server 7