Merge pull request #4215 from KingMob/bugfix/get-shell-names-correctly

This commit is contained in:
Eugeny
2021-07-16 23:53:40 +02:00
committed by GitHub

View File

@@ -24,7 +24,7 @@ export class POSIXShellsProvider extends ShellProvider {
.filter(x => x && !x.startsWith('#'))
.map(x => ({
id: slugify(x),
name: x.split('/')[2],
name: x.split('/').pop(),
icon: 'fas fa-terminal',
command: x,
args: ['-l'],