From 44edfcce5e61aa4b6e8ce0fb203ee4e542b9d257 Mon Sep 17 00:00:00 2001 From: Thom Dixon Date: Tue, 20 Oct 2015 11:55:48 -0700 Subject: [PATCH] Use builtin cd and pwd Use the builtin `cd` and `pwd`, as these could have been overridden by aliases or other plugins. --- plugins/tmux/tmux.plugin.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/tmux/tmux.plugin.zsh b/plugins/tmux/tmux.plugin.zsh index bc32c8907..871b52a9a 100644 --- a/plugins/tmux/tmux.plugin.zsh +++ b/plugins/tmux/tmux.plugin.zsh @@ -37,7 +37,7 @@ if which tmux &> /dev/null # Get the absolute path to the current directory - local zsh_tmux_plugin_path="$(cd "$(dirname "$0")" && pwd)" + local zsh_tmux_plugin_path="$(builtin cd "$(dirname "$0")" && builtin pwd)" # Determine if the terminal supports 256 colors if [[ `tput colors` == "256" ]]