Vendor Functions
Vendor is related to specific software vendors and integration with the shell.
contextOpen
Open a file in a shell using the program we
Usage
contextOpen [ --help ]
Open a file in a shell using the program we are using. Supports VSCode and PHPStorm.
Arguments
--help- Flag. Optional. Display this help.
Return codes
0- Success1- Environment error2- Argument error
Environment
- {SEE:EDITOR.sh} - Used as a default editor (first)
- {SEE:VISUAL.sh} - Used as another default editor (last)
contextShow
Show the current editor being used as a text string
Usage
contextShow
Show the current editor being used as a text string
Arguments
- none
Return codes
1- If no editor or running program can be determined
Environment
- {SEE:EDITOR.sh} - Used as a default editor (first)
- {SEE:VISUAL.sh} - Used as another default editor (last)
isPHPStorm
Are we within the JetBrains PHPStorm terminal?
Usage
isPHPStorm [ --help ]
Are we within the JetBrains PHPStorm terminal?
Arguments
--help- Flag. Optional. Display this help.
Return codes
0- within the PhpStorm terminal1- not within the PhpStorm terminal AFAIK
isPyCharm
Are we within the JetBrains PyCharm terminal?
Usage
isPyCharm [ --help ]
Are we within the JetBrains PyCharm terminal?
Arguments
--help- Flag. Optional. Display this help.
Return codes
0- within the PyCharm terminal1- not within the PyCharm terminal AFAIK
isVisualStudioCode
Are we within the Microsoft Visual Studio Code terminal?
Usage
isVisualStudioCode [ --help ]
Are we within the Microsoft Visual Studio Code terminal?
Arguments
--help- Flag. Optional. Display this help.
Return codes
0- within the Visual Studio Code terminal1- not within the Visual Studio Code terminal AFAIK