Skip to content

Commit

Permalink
fix: apply .bashrc when running a task (#395)
Browse files Browse the repository at this point in the history
Signed-off-by: vitaliy-guliy <[email protected]>
  • Loading branch information
vitaliy-guliy authored Aug 8, 2024
1 parent 9a769bd commit dd29c50
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions code/extensions/che-terminal/src/machine-exec-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@ export class MachineExecClient implements vscode.Disposable {
* @returns a TerminalSession object to manage the created terminal session
*/
async createTerminalSession(component: string, commandLine?: string, workdir?: string, columns: number = 80, rows: number = 24): Promise<TerminalSession> {
if (commandLine) {
commandLine = "test -f ${HOME}/.bashrc >> /dev/null 2>&1 && source ${HOME}/.bashrc >> /dev/null 2>&1;" + commandLine;
}

const createTerminalSessionCall = {
identifier: {
machineName: component
Expand Down

0 comments on commit dd29c50

Please sign in to comment.