Modifying shellExitAction value in terminal profile

I would like to change the Mac OS terminal settings, shellExitAction value from the default to others value example 0 or 1.

I know we can use the defaults command to edit the property list of the terminal. But the value for shellExitAction is nested in the Window Settings value.

How to defaults write com.apple.terminal "Window Settings" -string 'Basic { shellExitAction = 2 }; ' correctly?

The above I tried is not working and the value does not change.

Answered by DTS Engineer in 813535022
No place to close the topic.

See tip 12 in Quinn’s Top Ten DevForums Tips.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

This is the value I want to change.

I already found the answer myself. Thanks ! No place to close the topic.

No place to close the topic.

See tip 12 in Quinn’s Top Ten DevForums Tips.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Modifying shellExitAction value in terminal profile
 
 
Q