mirror of
https://github.com/dcarrillo/prezto.git
synced 2025-11-16 00:12:36 +00:00
[Fix #299] Set EXTENDED_GLOB in set-titles-with-path
This commit is contained in:
@@ -80,6 +80,9 @@ function set-titles-with-command {
|
|||||||
|
|
||||||
# Sets the tab and window titles with a given path.
|
# Sets the tab and window titles with a given path.
|
||||||
function set-titles-with-path {
|
function set-titles-with-path {
|
||||||
|
emulate -L zsh
|
||||||
|
setopt EXTENDED_GLOB
|
||||||
|
|
||||||
local absolute_path="${${1:a}:-$PWD}"
|
local absolute_path="${${1:a}:-$PWD}"
|
||||||
|
|
||||||
if [[ "$TERM_PROGRAM" == 'Apple_Terminal' ]]; then
|
if [[ "$TERM_PROGRAM" == 'Apple_Terminal' ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user