Opens a new OS X Terminal window in the current directory and runs an optional command in it.
Project description
tab - Opens a new OS X Terminal window in the current directory and runs
an optional command in it.
If the current directory contains a file `.tabfile` this one is executed
instead (see below).
Download the latest version from: https://github.com/bartTC/tab
Installation:
-------------
Install it with pip: `pip install tab-osx` or if you prefer the manual way,
copy the `tab` file into your `/usr/local/bin` and make it executable:
cp tab /usr/local/bin
chmod +x /usr/local/bin/tab
Options:
--------
(no arguments) Opens a new Terminal tab and changes to the current
directory.
-n: Window name of the new tab
-w: Open a new window instead of a tab
-p: Position of the new window on screen in the format x,y (e.g 400,200)
-s: Size of the new window in the format w,h (e.g. 400,200)
-t: Path to a tabfile to execute.
Example:
--------
tab # Opens a new tab
tab vim # Opens vim in a new tab
tab -w -s 100,100 -p 400,700 vim # Opens vim in a new window at the
# specified position and size
tab -t ~/Projects/project.tabfile # Open the tabfile
Tabfile:
--------
You can specify multiple `tab` actions in one file, to quickly open multiple
tabs with commands. Tabfile is an INI file, each tab is seperated by a group
called either `tab:<n>` or `window:<n>`.
You can specify options as 'name:', 'size:', and 'position:'. All other
lines are commands which will be executed.
[tab:1] # Gulp Watcher
source ~/myproject/bin/activate
gulp watch
[tab:2] # Django Project
source ~/myproject/bin/activate
manage.py runserver # Start the server
[tab:3]
open http://127.0.0.1:8000/ # Open web browser for above server
clear # and have a blank tab to work in
[window:1] # Vim Editor in a separate
size: 200,400 # window.
position: 600,300
vim
an optional command in it.
If the current directory contains a file `.tabfile` this one is executed
instead (see below).
Download the latest version from: https://github.com/bartTC/tab
Installation:
-------------
Install it with pip: `pip install tab-osx` or if you prefer the manual way,
copy the `tab` file into your `/usr/local/bin` and make it executable:
cp tab /usr/local/bin
chmod +x /usr/local/bin/tab
Options:
--------
(no arguments) Opens a new Terminal tab and changes to the current
directory.
-n: Window name of the new tab
-w: Open a new window instead of a tab
-p: Position of the new window on screen in the format x,y (e.g 400,200)
-s: Size of the new window in the format w,h (e.g. 400,200)
-t: Path to a tabfile to execute.
Example:
--------
tab # Opens a new tab
tab vim # Opens vim in a new tab
tab -w -s 100,100 -p 400,700 vim # Opens vim in a new window at the
# specified position and size
tab -t ~/Projects/project.tabfile # Open the tabfile
Tabfile:
--------
You can specify multiple `tab` actions in one file, to quickly open multiple
tabs with commands. Tabfile is an INI file, each tab is seperated by a group
called either `tab:<n>` or `window:<n>`.
You can specify options as 'name:', 'size:', and 'position:'. All other
lines are commands which will be executed.
[tab:1] # Gulp Watcher
source ~/myproject/bin/activate
gulp watch
[tab:2] # Django Project
source ~/myproject/bin/activate
manage.py runserver # Start the server
[tab:3]
open http://127.0.0.1:8000/ # Open web browser for above server
clear # and have a blank tab to work in
[window:1] # Vim Editor in a separate
size: 200,400 # window.
position: 600,300
vim
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tab-osx-1.2.tar.gz
(4.1 kB
view details)
File details
Details for the file tab-osx-1.2.tar.gz
.
File metadata
- Download URL: tab-osx-1.2.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8d1fcbda9a9c887f3ce81307e6406e758afd3e1086e31e2eb63a2d893ca8f89 |
|
MD5 | 621e0c3481f6a855e9c9f4bb08458d8f |
|
BLAKE2b-256 | a79b05cdd42bcee2513a35f761906ce576ced9bef903f3f32d5580e0566711ee |