load rc profile

This commit is contained in:
Girish Ramakrishnan
2021-05-03 23:01:06 -07:00
parent a3245278f0
commit d072682e82
+2 -1
View File
@@ -149,7 +149,8 @@ angular.module('Application').controller('TerminalController', ['$scope', '$tran
function createTerminalSocket() {
try {
// websocket cannot use relative urls
var url = Client.apiOrigin.replace('https', 'wss') + '/api/v1/apps/' + $scope.selected.value + '/execws?tty=true&rows=' + $scope.terminal.rows + '&columns=' + $scope.terminal.cols + '&access_token=' + Client.getToken();
var cmd = JSON.stringify([ '/bin/bash', '--norc' ]);
var url = Client.apiOrigin.replace('https', 'wss') + '/api/v1/apps/' + $scope.selected.value + '/execws?tty=true&rows=' + $scope.terminal.rows + '&columns=' + $scope.terminal.cols + '&access_token=' + Client.getToken() + '&cmd=' + cmd;
$scope.terminalSocket = new WebSocket(url);
$scope.terminal.loadAddon(new AttachAddon.AttachAddon($scope.terminalSocket));