iterm2-tab-set
iterm2-tab-set copied to clipboard
Add an option to disable text output to the console
I use this tool in a precmd/prexec hook with ZSH so it runs every time my prompt is rendered. When I'm using the --hash option, the text "hashed color: xxx" is rendered to my terminal. It'd be nice to be able to disable this output so it doesn't clutter my screen.
Just to make it clear, you can't use > /dev/null because it will break tabset, which uses an escaped char stream to make the magic.
Edit:
You can also use escape sequences after the command ran, like this on my .zshrc:
function preexec {
tabset $1 && printf "\e[1F\e[0J" # goes up one line then kills all to the end of the line
}
That's a useful tip. I've taken instead the route of merging my two open PRs into my own fork and then installing from my own fork. I don't think this repo is maintained.