austinjones / tab-rs

The intuitive, config-driven terminal multiplexer designed for software & systems engineers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

oh-my-zsh's osx plugin shadows the tab executable with a shell function

Jacobious52 opened this issue · comments

When running on the BlinkSh https://github.com/blinksh/blink with host macOS over ssh, the follow error is reported after hanging for about a minute.

This happens with any command. For example

[~]   tab --install all
tab: unsupported terminal app: 
[~] # above takes about 60 seconds to print and exit

Installed with cargo install

Hi @Jacobious52,
I think the tab: unsupported terminal app message is being printed by your shell.

I think it may be coming from this oh-my-zsh plugin, which wasn't installed on my system when I tested oh-my-zsh. https://github.com/ohmyzsh/ohmyzsh/blob/master/plugins/osx/osx.plugin.zsh

The plugin defines a function which is suspiciously named tab: https://github.com/ohmyzsh/ohmyzsh/blob/master/plugins/osx/osx.plugin.zsh#L22 - and seems to check for terminal emulators.

Is this plugin in your ~/.zshrc ?

I was just able to reproduce it by adding the osx plugin to my ~/.zshrc.

Thanks for the bug report - this is really useful to know about!