Skip to content

Commit a761ea1

Browse files
committed
Also prompt of DISABLE_AUTO_TITLE set to 'false'. update CHANGES
1 parent e6e5a4e commit a761ea1

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

CHANGES

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@ tmuxp Changelog
33

44
Here you can find the recent changes to tmuxp.
55

6+
2013-10-24
7+
----------
8+
9+
- [internal] clean out old code for ``automatic-rename`` option. it will
10+
be reimplemented fresh.
11+
- [cli] check for ``oh-my-zsh`` when using ``$SHELL`` ``zsh``. Prompt if
12+
``DISABLE_AUTO_TITLE`` is unset or set to ``true``.
13+
614
2013-10-23
715
----------
816

tmuxp/cli.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -388,14 +388,10 @@ def oh_my_zsh_auto_title():
388388
if 'SHELL' in os.environ and 'zsh' in os.environ.get('SHELL'):
389389
if os.path.exists(os.path.expanduser('~/.oh-my-zsh')):
390390
# oh-my-zsh exists
391-
if 'DISABLE_AUTO_TITLE' not in os.environ or os.environ.get('DISABLE_AUTO_TITLE') is "true":
391+
if 'DISABLE_AUTO_TITLE' not in os.environ or os.environ.get('DISABLE_AUTO_TITLE') == "false":
392392
print('Please set:\n\n'
393393
'\texport DISABLE_AUTO_TITLE = \'true\'\n\n'
394394
'in ~/.zshrc or where your zsh profile is stored.\n'
395395
'Remember the "export" at the beginning!\n\n'
396396
'Then create a new shell or type:\n\n'
397397
'\t$ source ~/.zshrc')
398-
399-
# check for oh-my-zsh
400-
# you are using oh-my-zsh without DISABLE_AUTO_TITLE, this can cause unexpected
401-
# behavior with tmux window renaming. Let me uncomment for you?

0 commit comments

Comments
 (0)