shellSettingsTab.component.pug 1.5 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
h3.mb-3 Shell

.form-line
    .header
        .title Shell
        .description Default shell for new tabs

    select.form-control(
        [(ngModel)]='config.store.terminal.shell',
        (ngModelChange)='config.save()',
    )
        option(
            *ngFor='let shell of shells',
            [ngValue]='shell.id'
        ) {{shell.name}}

.form-line(*ngIf='config.store.terminal.shell == "custom"')
    .header
        .title Custom shell

    input.form-control(
        type='text',
        [(ngModel)]='config.store.terminal.customShell',
        (ngModelChange)='config.save()',
    )

.form-line(*ngIf='persistenceProviders.length > 0')
    .header
        .title Session persistence
        .description Restores tabs when Terminus is restarted
    select.form-control(
        [(ngModel)]='config.store.terminal.persistence',
        (ngModelChange)='config.save()',
    )
        option([ngValue]='null') Off
        option(
            *ngFor='let provider of persistenceProviders',
            [ngValue]='provider.id'
        ) {{provider.displayName}}

.form-line
    .header
        .title Working directory
44 45 46 47 48 49 50 51 52 53
    .input-group
        input.form-control(
            type='text',
            placeholder='Home directory',
            [(ngModel)]='config.store.terminal.workingDirectory',
            (ngModelChange)='config.save()',
        )            
        .input-group-btn
            button.btn.btn-secondary((click)='pickWorkingDirectory()')
                i.fa.fa-folder-open