You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The default, out-of-the-box configuration should be good enough to get started. However, if you're looking to customize the appearance further, here are a few advanced tips.
18
+
In your home directory create a file called ```~/.shuttle.path```
19
+
In this file should be a single line with the path to the JSON settings file.
19
20
20
-
### Disabling `~/.ssh/config` hosts
21
+
```
22
+
/Users/thshdw/Dropbox/shuttle/shuttle.json
23
+
```
24
+
shuttle will read ```~/.shuttle.path``` first and use its contents as the path to your JSON file.
25
+
26
+
## JSON Options
27
+
### Global settings
28
+
#### ```"editor": "VALUE",```
29
+
_This changes the app that opens settings.json for editing (Global Setting)_
30
+
31
+
Possible values are ```default```, ```nano```, ```vi```, ```vim``` or any terminal based editor.
32
+
```default``` opens settings.json in whatever app is registered as the default for extension ```.json```
33
+
```
34
+
"editor": "vim",
35
+
```
36
+
would open ```~/.shuttle.json``` in vim
37
+
38
+
----
39
+
40
+
#### ```"launch_at_login": VALUE,```
41
+
_This allows you to flag the shuttle.app to start automatically (Global Setting)_
42
+
43
+
Possible values are ```true``` or ```false```
44
+
45
+
----
46
+
47
+
#### ```"terminal": "VALUE",```
48
+
_This allows you to set the default terminal (Global Setting)_
49
+
50
+
Possible values are ```Terminal.app``` or ```iTerm```
51
+
52
+
----
53
+
54
+
#### ```"iTerm_version": "VALUE",```
55
+
_This changes the applescripts for iTerm (Global Setting)_
56
+
57
+
Possible values are ```stable``` or ```nightly```
58
+
59
+
**If ```terminal``` is set to ```iTerm``` this setting is mandatory**
60
+
61
+
_This setting is ignored if your terminal is set to ```Terminal.app```_
62
+
63
+
----
64
+
65
+
#### ```"default_theme": "Homebrew",```
66
+
_This sets the Terminal theme for all windows. (Global Setting)_
67
+
68
+
Possible values are the Profile names in your terminal preferences. iTerm ships with one Profile named "Default". OS X Terminal ships with several. To see the names see the preferences area of the terminal you are using.
69
+
70
+
In iTerm the profile names are case sensitive.
71
+
72
+
**Please ensure the theme names you set are valid. If shuttle passes theme "Dagobah" and it does not exist in iTerm or OS X Terminal then your command won't run. This is because the applescripts are not making any checks to see if the theme you passed actually exists within the terminal application.**
73
+
74
+
This setting can be overwritten by the command level ```"theme"``` settings
75
+
76
+
----
77
+
78
+
#### ```"open_in": "VALUE",```
79
+
_This changes the default action for how commands are opened (Global Setting)_
80
+
81
+
Possible values are ```tab``` or ```new```.
82
+
83
+
```tab``` opens the command in the active terminal in a new tab.
84
+
85
+
```new``` opens the command in a new window.
86
+
87
+
This setting can be overwritten by the command level ```"inTerminal"``` settings
88
+
89
+
----
90
+
91
+
#### ```"show_ssh_config_hosts": VALUE,```
92
+
_This changes parsing ssh config. By default, Shuttle will parse your ```~/.ssh/config``` file for hosts. (Global Setting)_
93
+
94
+
Possible values are ```false``` or ```true```
95
+
96
+
----
21
97
22
-
By default, Shuttle will parse your `~/.ssh/config` file for hosts.
_This will ignore hosts in the ssh config. (Global Setting)_
23
100
24
-
##### To disable all ~/.ssh/config entries:
101
+
Possible values are the hosts in your config that you want to ignore. If you had github.com and git.example.com in your ssh config, to ignore them you set:
echo "are you sure y/n"; read sure; if [ "$sure" == "y" ]; then echo "running command" && ps aux | grep [s]sh; else echo "exiting..."; fi
56
172
```
57
173
174
+
Do this as a precaution as it could be possible to run a command on the wrong host.
175
+
176
+
----
177
+
178
+
#### ```"theme": "VALUE",```
179
+
_This sets the theme for the terminal window. (Command setting)_
180
+
181
+
Possible values are the profile names for iTerm or OS X Terminal.
182
+
183
+
If ```"theme"``` is not set and ```"default_theme"``` is not set then shuttle passes Profile ```Default``` for iTerm and Profile ```basic``` for OS X terminal.
184
+
185
+
----
186
+
187
+
#### ```"title": "VALUE"```
188
+
_This sets the text that will appear in the terminal's title bar. (Command setting)_
189
+
190
+
Where VALUE is the text you want to set in the terminals title bar.
191
+
192
+
If ```title``` is missing shuttle uses the menu's name and sets this as ```title```
0 commit comments