mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-20 03:02:29 +01:00
Add the environment variable DISABLE_CMD_AUTO_TITLE for those that only want to see pwd in their titles.
This commit is contained in:
parent
7f07facf41
commit
0fbf90b242
2 changed files with 7 additions and 1 deletions
|
|
@ -24,6 +24,9 @@ function omz_termsupport_precmd {
|
|||
|
||||
#Appears at the beginning of (and during) of command execution
|
||||
function omz_termsupport_preexec {
|
||||
if [[ "$DISABLE_CMD_AUTO_TITLE" == "true" ]]; then
|
||||
return
|
||||
fi
|
||||
emulate -L zsh
|
||||
setopt extended_glob
|
||||
|
||||
|
|
|
|||
|
|
@ -19,9 +19,12 @@ ZSH_THEME="robbyrussell"
|
|||
# Uncomment the following line to disable colors in ls.
|
||||
# DISABLE_LS_COLORS="true"
|
||||
|
||||
# Uncomment the following line to disable auto-setting terminal title.
|
||||
# Uncomment the following line to disable auto-setting terminal title in any way.
|
||||
# DISABLE_AUTO_TITLE="true"
|
||||
|
||||
# Uncomment the following line to disable auto-setting running commands in the terminal title.
|
||||
# DISABLE_CMD_AUTO_TITLE="true"
|
||||
|
||||
# Uncomment the following line to enable command auto-correction.
|
||||
# ENABLE_CORRECTION="true"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue