randy3k / Terminus

Bring a real terminal to Sublime Text
https://packagecontrol.io/packages/Terminus
MIT License
1.37k stars 83 forks source link

How to set a default start directory? #328

Open PumpkinDemo opened 2 years ago

PumpkinDemo commented 2 years ago

is there a way to set a default start directory or workspace, so that, the shell would be started at that directory when opening terminus without folder or file open

randy3k commented 2 years ago

Just set the cwd as ${file_path:DEFAULT}

PumpkinDemo commented 2 years ago

Just set the cwd as ${file_path:DEFAULT}

Any settings example? I have tried to put it in shell_configs but it doesn't work

crossinghoods commented 2 years ago

In keybindings > try this >

[
    { 
        "keys": ["ctrl+alt+t"], "command": "terminus_open", "args": {
            "cwd": "${file_path:${folder}}"
        }
    }
]