Skip to content

Env variable to know if :terminal shell is within MacVim #655

@jeromedalbert

Description

@jeromedalbert

I have this in my .zshrc:

if [ -z $TMUX ]; then; tmux-start; fi

It works well for terminal and terminal vim.

But for MacVim, I get this:

screen shot 2018-03-20 at 8 49 01 pm

There is a tmux inside :terminal (see black bar at the bottom of the screenshot). I would like to disable tmux in macvim because I don't think it makes much sense. Maybe if I could test against an environment variable like $MACVIM available inside a :terminal, I would be able to disable this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions