mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-10 06:20:03 +00:00
re-fixed #517
This commit is contained in:
parent
fc501b5e51
commit
b8d9f6442a
@ -49,7 +49,7 @@ export class TerminalService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getProfileID (profile: Profile): string {
|
getProfileID (profile: Profile): string {
|
||||||
return slugify(profile.name).toLowerCase()
|
return slugify(profile.name, { remove: /[:.]/g }).toLowerCase()
|
||||||
}
|
}
|
||||||
|
|
||||||
async getProfileByID (id: string): Promise<Profile> {
|
async getProfileByID (id: string): Promise<Profile> {
|
||||||
|
@ -91,8 +91,9 @@ export class WSLShellProvider extends ShellProvider {
|
|||||||
const wslVersion = childKey.Flags.value & 8 ? 2 : 1
|
const wslVersion = childKey.Flags.value & 8 ? 2 : 1
|
||||||
const name = childKey.DistributionName.value
|
const name = childKey.DistributionName.value
|
||||||
const fsBase = wslVersion === 2 ? `\\\\wsl$\\${name}` : childKey.BasePath.value as string + '\\rootfs'
|
const fsBase = wslVersion === 2 ? `\\\\wsl$\\${name}` : childKey.BasePath.value as string + '\\rootfs'
|
||||||
|
const slug = slugify(name, { remove: /[:.]/g })
|
||||||
const shell: Shell = {
|
const shell: Shell = {
|
||||||
id: `wsl-${slugify(name)}`,
|
id: `wsl-${slug}`,
|
||||||
name: `WSL / ${name}`,
|
name: `WSL / ${name}`,
|
||||||
command: wslPath,
|
command: wslPath,
|
||||||
args: ['-d', name],
|
args: ['-d', name],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user