Skip to content

Commit

Permalink
Correctly name profiles for shells outside /usr
Browse files Browse the repository at this point in the history
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".
  • Loading branch information
KingMob committed Jul 16, 2021
1 parent 8ac101c commit 7e8c19e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tabby-local/src/shells/posix.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down

0 comments on commit 7e8c19e

Please sign in to comment.