I find myself running the same terminal commands when I turn on the laptop. I press ctrl+alt+t to open a new terminal window. (I am a beginner working with RoR on Ubuntu 12.04)
- I open new terminal window and navigate to Rails folder and run vim
- I open another terminal window, navigate to Rails folder and run
‘bundle exec guard‘ - I open another window, and run rails console
- I open another window with rails server running on it
- I open another window with IRSSI (IRC client on it)
How to perform these actions with single terminal command? I guess a custom script is required, but I don’t know how to write it or where to put it… Also, if possible, I’d like to open them in a full screen terminal windows
You can use
tmuxfor these kind of staff. For example the example below will create 5 windows(which are tabs), each named with the first parametr after-nand then executed.Look here for more information about this:
http://blog.hawkhost.com/2010/07/02/tmux-%E2%80%93-the-terminal-multiplexer-part-2/#tmux-shell-scripting
In tmux
panesare arbitary windows, andwindowsare actually tabs.