From d48a162366bb70d25f03ad6f4c50bc40c9fcc294 Mon Sep 17 00:00:00 2001 From: Sorin Ionescu Date: Tue, 25 Sep 2012 11:04:50 -0400 Subject: [PATCH] [Fix #299] Set EXTENDED_GLOB in set-titles-with-path --- modules/terminal/init.zsh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/terminal/init.zsh b/modules/terminal/init.zsh index ebb014b..98571c9 100644 --- a/modules/terminal/init.zsh +++ b/modules/terminal/init.zsh @@ -80,6 +80,9 @@ function set-titles-with-command { # Sets the tab and window titles with a given path. function set-titles-with-path { + emulate -L zsh + setopt EXTENDED_GLOB + local absolute_path="${${1:a}:-$PWD}" if [[ "$TERM_PROGRAM" == 'Apple_Terminal' ]]; then