Skip to content
This repository has been archived by the owner on Jul 30, 2023. It is now read-only.

feat: colorize only ttys #1

Merged
merged 1 commit into from Oct 11, 2020

Commits on Oct 11, 2020

  1. feat: colorize only ttys

    Usually kubectl is also used in aliases such as the ones
    available as zsh plugins
    (https://github.com/ohmyzsh/ohmyzsh/blob/master/plugins/kubectl/kubectl.plugin.zsh).
    
    Unfortunately if you alias k to kubecolor, you won't be able
    to get commands such as `kcn` to work because the output in
    the subshell will be colorized as well.
    
    This commit checks whether the user is running the command
    in a TTY, and returns the colorized version only in this case,
    so that kubecolor and kubectl subshell commands can coexist.
    denysvitali committed Oct 11, 2020
    Configuration menu
    Copy the full SHA
    1ddd5f5 View commit details
    Browse the repository at this point in the history