JanDeDobbeleer / oh-my-posh

The most customisable and low-latency cross platform/shell prompt renderer
https://ohmyposh.dev
MIT License
16.84k stars 2.36k forks source link

Ability to set default_user_name from ENV #447

Closed jetersen closed 3 years ago

jetersen commented 3 years ago

Prerequisites

Description

This feature was supported in v2 https://github.com/jetersen/dotfiles/blob/7f2f4e241c29d59699a85a2f20186207cf6224aa/powershell/profile.ps1#L5

I would prefer to have the ability to set default username via USERNAME when the prompt is setup instead of hardcoding a fixed username in the json theme file. When using display_default: false

Environment

Steps to Reproduce

        {
          "type": "session",
          "style": "diamond",
          "powerline_symbol": "",
          "invert_powerline": false,
          "foreground": "#ffffff",
          "foreground_templates": null,
          "background": "#c386f1",
          "background_templates": null,
          "leading_diamond": "",
          "trailing_diamond": "",
          "properties": {
            "display_host": false,
            "default_user_name": "joseph",
            "display_default": false
          }
        },
github-actions[bot] commented 4 months ago

This issue has been automatically locked since there has not been any recent activity (i.e. last half year) after it was closed. It helps our maintainers focus on the active issues. If you have found a problem that seems similar, please open a discussion first, complete the body with all the details necessary to reproduce, and mention this issue as reference.