mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-14 00:20:13 +00:00
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".
This commit is contained in:
parent
8ac101cf9c
commit
7e8c19e97b
@ -24,7 +24,7 @@ export class POSIXShellsProvider extends ShellProvider {
|
|||||||
.filter(x => x && !x.startsWith('#'))
|
.filter(x => x && !x.startsWith('#'))
|
||||||
.map(x => ({
|
.map(x => ({
|
||||||
id: slugify(x),
|
id: slugify(x),
|
||||||
name: x.split('/')[2],
|
name: x.split('/').pop(),
|
||||||
icon: 'fas fa-terminal',
|
icon: 'fas fa-terminal',
|
||||||
command: x,
|
command: x,
|
||||||
args: ['-l'],
|
args: ['-l'],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user