From 7e8c19e97b40e3be6bdce3790f9b3995f3e4b527 Mon Sep 17 00:00:00 2001 From: Matthew Davidson Date: Fri, 16 Jul 2021 16:50:32 -0400 Subject: [PATCH] Correctly name profiles for shells outside /usr Shells outside /usr get named incorrectly. E.g., if I add /usr/local/bin/fish to /etc/shells, when Tabby starts up, it think the profile name should be "local". --- tabby-local/src/shells/posix.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tabby-local/src/shells/posix.ts b/tabby-local/src/shells/posix.ts index d244f075..5173f099 100644 --- a/tabby-local/src/shells/posix.ts +++ b/tabby-local/src/shells/posix.ts @@ -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'],