Skip to content

Instantly share code, notes, and snippets.

@pokka
Last active December 14, 2015 15:08
Show Gist options
  • Save pokka/5105559 to your computer and use it in GitHub Desktop.
Save pokka/5105559 to your computer and use it in GitHub Desktop.
Terminal working with tabs
#!/bin/bash
usr_path=/your/home/dir/
ws_path=$usr_path'your/workspace/dir'
project=$ws_path'your/project/dir'
guake -e "cd '$ws_path';pwd"
guake -r workspace
guake -n 1
guake -r cs
guake -e "cd '$project';rails s -p3004"
guake -n 1
guake -r cc
guake -e "cd '$project';rails c"
guake -n 1
guake -r cst
guake -e "cd '$project';git status -sb"
#!/bin/bash
usr_path=/your/home/dir/
ws_path=$usr_path'your/workspace/dir'
project=$ws_path'your/project/dir'
gnome-terminal --working-directory=$ws_path --maximize \
--tab -t su \
--tab -t cs --working-directory=$project \
--tab -t cc --working-directory=$project \
--tab -t cst --working-directory=$project \
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment