mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-27 20:09:39 -08:00
feat: toggle on segment alias
This commit is contained in:
parent
bb15f078bb
commit
3979bff7f9
|
@ -462,7 +462,7 @@ func (segment *Segment) SetEnabled(env platform.Environment) {
|
|||
if toggles, OK := segment.env.Cache().Get(platform.TOGGLECACHE); OK && len(toggles) > 0 {
|
||||
list := strings.Split(toggles, ",")
|
||||
for _, toggle := range list {
|
||||
if SegmentType(toggle) == segment.Type {
|
||||
if SegmentType(toggle) == segment.Type || toggle == segment.Alias {
|
||||
return
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue