Last active
December 14, 2015 15:08
-
-
Save pokka/5105559 to your computer and use it in GitHub Desktop.
Terminal working with tabs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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