How to use Terminator's Options?
Solution 1
This should work:
cd /path/to/your/directory; bash
Solution 2
You can create a new launcher for Terminator with your custom settings:
cp /usr/share/applications/terminator.desktop /tmp/terminator-cd.desktop
# Replace Exec=terminator with Exec=terminator --working-dir=/path/to/dir
vim /tmp/terminator-cd.desktop
chmod +x /tmp/terminator-cd.desktop
desktop-file-install --dir=~/.local/share/applications /tmp/terminator-cd.desktop
This should add an icon to your launcher. You can manually edit the terminator-cd.desktop
file and change the display name or icon to distinguish it easily.
Related videos on Youtube
Jitendra Vyas
Hi, I am Jitendra a front-end developer from India specializing in web standards, accessibility, and usability based development.
Updated on September 18, 2022Comments
-
Jitendra Vyas over 1 year
Terminator has one option http://linux.die.net/man/1/terminator
--working-directory=DIR Set the terminal's working directory
I want to open my Terminator within a specific directory each time and I think this is the option to do that.
But I don't know where to change/add this setting.
Currently every-time I open Terminator after that I need to type
cd project_directory_name
I want to open this automatically each time I open new Terminator window or I split in same window
-
Jitendra Vyas almost 10 yearsthis is using bash instead Prezto
-
Jitendra Vyas almost 10 yearsThis is working thanks. I changed ;bash to ;zsh. is it also possible to run different command in different tab? . I have a layout which open 3 tab by default
-
TuKsn almost 10 yearsThis is also possible look at this great answer superuser.com/a/610048, but to get this work you have to remove the option "Run a custom command instead of my shell" (undo my suggestions which I have described above in my answer) then you can set a command for each tab in the layout settings how terdon described in his answer.