a91872df35d15f0544339ae9c61f87e761c19827

Author
Josh Matthews <josh@jmatthews.us>
Committer
Josh Matthews <josh@jmatthews.us>
Date

Message

Prefixing tmux wrapper function with '_'.

Diff

 1diff --git a/plugins/tmux/tmux.plugin.zsh b/plugins/tmux/tmux.plugin.zsh
 2index 6f0d5902ad0cf6764703e6c1d3b9fecd41c0ed70..ea6b4d26cc27654878447fdfcbcc72d1adb4e6cb 100644
 3--- a/plugins/tmux/tmux.plugin.zsh
 4+++ b/plugins/tmux/tmux.plugin.zsh
 5@@ -49,7 +49,7 @@ if which tmux &> /dev/null
 6 	fi
 7 
 8 	# Wrapper function for tmux.
 9-	function zsh_tmux_plugin_run()
10+	function _zsh_tmux_plugin_run()
11 	{
12 		# We have other arguments, just run them
13 		if [[ -n "$@" ]]
14@@ -68,10 +68,10 @@ if which tmux &> /dev/null
15 	}
16 
17 	# Use the completions for tmux for our function
18-	compdef _tmux zsh_tmux_plugin_run
19+	compdef _tmux _zsh_tmux_plugin_run
20 
21 	# Alias tmux to our wrapper function.
22-	alias tmux=zsh_tmux_plugin_run
23+	alias tmux=_zsh_tmux_plugin_run
24 
25 	# Autostart if not already in tmux and enabled.
26 	if [[ ! -n "$TMUX" && "$ZSH_TMUX_AUTOSTART" == "true" ]]
27@@ -80,7 +80,7 @@ if which tmux &> /dev/null
28 		if [[ "$ZSH_TMUX_AUTOSTART_ONCE" == "false" || "$ZSH_TMUX_AUTOSTARTED" != "true" ]]
29 		then
30 			export ZSH_TMUX_AUTOSTARTED=true
31-			zsh_tmux_plugin_run
32+			_zsh_tmux_plugin_run
33 		fi
34 	fi
35 else