diff options
author | Josh Matthews <josh@jmatthews.us> | 2013-03-26 19:41:34 +0000 |
---|---|---|
committer | Josh Matthews <josh@jmatthews.us> | 2013-03-26 19:41:34 +0000 |
commit | a91872df35d15f0544339ae9c61f87e761c19827 (patch) | |
tree | 162c45dc4ed02083cf543d9ca11f505498e70e07 /plugins/tmux/tmux.plugin.zsh | |
parent | f0a920df5a4a5e5260ef45daf27d42a15cd75217 (diff) | |
download | zsh-a91872df35d15f0544339ae9c61f87e761c19827.tar.gz zsh-a91872df35d15f0544339ae9c61f87e761c19827.tar.bz2 zsh-a91872df35d15f0544339ae9c61f87e761c19827.zip |
Prefixing tmux wrapper function with '_'.
Diffstat (limited to 'plugins/tmux/tmux.plugin.zsh')
-rw-r--r-- | plugins/tmux/tmux.plugin.zsh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/tmux/tmux.plugin.zsh b/plugins/tmux/tmux.plugin.zsh index 6f0d5902a..ea6b4d26c 100644 --- a/plugins/tmux/tmux.plugin.zsh +++ b/plugins/tmux/tmux.plugin.zsh @@ -49,7 +49,7 @@ if which tmux &> /dev/null fi # Wrapper function for tmux. - function zsh_tmux_plugin_run() + function _zsh_tmux_plugin_run() { # We have other arguments, just run them if [[ -n "$@" ]] @@ -68,10 +68,10 @@ if which tmux &> /dev/null } # Use the completions for tmux for our function - compdef _tmux zsh_tmux_plugin_run + compdef _tmux _zsh_tmux_plugin_run # Alias tmux to our wrapper function. - alias tmux=zsh_tmux_plugin_run + alias tmux=_zsh_tmux_plugin_run # Autostart if not already in tmux and enabled. if [[ ! -n "$TMUX" && "$ZSH_TMUX_AUTOSTART" == "true" ]] @@ -80,7 +80,7 @@ if which tmux &> /dev/null if [[ "$ZSH_TMUX_AUTOSTART_ONCE" == "false" || "$ZSH_TMUX_AUTOSTARTED" != "true" ]] then export ZSH_TMUX_AUTOSTARTED=true - zsh_tmux_plugin_run + _zsh_tmux_plugin_run fi fi else |