Gnome allows the default Terminal Profile to be changed for new Terminals created with Ctrl+Alt+T.

But what if I want to:

Create a new terminal with a specific profile from the command line
gnome-terminal --profile=<profile_name> --working-directory=<full_path>

echo $SHLVL produces 2.

Is there a way to do this where the SHLVL is 1?


1 Answer 1


You can set SHLVL manually for that command to compensate for the erroneous +1:

SHLVL=0 gnome-terminal

Opens a new window. Then

echo $SHLVL

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.