JanDeDobbeleer / oh-my-posh

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

stty: 'standard input': unable to perform all requested operations #5081

Closed nunocf closed 5 months ago

nunocf commented 5 months ago

Code of Conduct

What happened?

I've set up oh-my-posh for the first time using nix-darwin and I get this error message every time I open a new kitty window.

image

I have no clue how to debug it, but it goes away if I disable oh-my-posh. It also goes away if I disable my custom template, but I'm unsure why. I've checked it for anything odd.

It happens any time I open a terminal or for example when I come back to the prompt from vim.

Theme

My own, here are the settings:

#:schema https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json
version = 2
final_space = true
console_title_template = '{{ .Shell }} in {{ .Folder }}'

[[blocks]]
  type = 'prompt'
  alignment = 'left'
  newline = true

  [[blocks.segments]]
    type = 'path'
    style = 'plain'
    background = 'transparent'
    foreground = 'p:waveAqua2'
    template = '{{ .Path }}'

    [blocks.segments.properties]
      style = 'full'

  [[blocks.segments]]
    type = 'git'
    style = 'plain'
    foreground = 'p:fujiGrey'
    background = 'transparent'
    template = ' {{ .HEAD }}{{ if or (.Working.Changed) (.Staging.Changed) }}*{{ end }} <p:waveAqua2>{{ if gt .Behind 0 }}⇣{{ end }}{{ if gt .Ahead 0 }}⇡{{ end }}</>'

    [blocks.segments.properties]
      branch_icon = ''
      commit_icon = '@'
      fetch_status = true

[[blocks]]
  type = 'rprompt'
  overflow = 'hidden'

  [[blocks.segments]]
    type = 'executiontime'
    style = 'plain'
    foreground = 'p:sakuraPink'
    background = 'transparent'
    template = '{{ div .Ms 1000 }}s'

    [blocks.segments.properties]
      threshold = 5000

[[blocks]]
  type = 'prompt'
  alignment = 'left'
  newline = true

  [[blocks.segments]]
    type = 'text'
    style = 'plain'
    foreground_templates = [
      "{{if gt .Code 0}}p:peachRed{{end}}",
      "{{if eq .Code 0}}p:springGreen{{end}}",
    ]
    background = 'transparent'
    template = 'λ'

[transient_prompt]
  foreground_templates = [
    "{{if gt .Code 0}}p:peachRed{{end}}",
    "{{if eq .Code 0}}p:springGreen{{end}}",
  ]
  background = 'transparent'
  template = 'λ '

[secondary_prompt]
  foreground = 'p:springGreen'
  background = 'transparent'
  template = '❯❯ '

[palette]
  fujiGrey = '#727169'
  peachRed = '#FF5D62'
  sakuraPink = '#D27E99'
  waveAqua2 = '#7AA89F'
  springGreen = '#98BB6C'

What OS are you seeing the problem on?

macOS

Which shell are you using?

zsh

Log output

Version: 21.3.0

Shell: zsh (5.9)

Prompt:

~/nixcfg master* ⇡
λ 

Segments:

ConsoleTitle(true)                         -   0 ms
Path(true)                                 -   0 ms
Git(true)                                  -   8 ms
Executiontime(false)                       -   0 ms
Text(true)                                 -   0 ms

Run duration: 21.360875ms

Cache path: /Users/nunocf/.cache/oh-my-posh

Config path: /Users/nunocf/.config/oh-my-posh/config.json

Logs:

[DEBUG] 16:52:48.721 shell.go:Getenv:326 → NO DATA
[TRACE] 16:52:48.721 shell.go:Getenv(TERM_PROGRAM) - 99.125µs
[DEBUG] 16:52:48.721 shell.go:Getenv:326 → NO DATA
[TRACE] 16:52:48.721 shell.go:Getenv(OMP_CACHE_DIR) - 2.25µs
[DEBUG] 16:52:48.722 shell.go:Getenv:326 → NO DATA
[TRACE] 16:52:48.722 shell.go:Getenv(XDG_CACHE_HOME) - 1.959µs
[TRACE] 16:52:48.722 shell_unix.go:CachePath() - 20.75µs
[DEBUG] 16:52:48.733 shell.go:Getenv:326 → /Users/nunocf/.config/oh-my-posh/config.json
[TRACE] 16:52:48.733 shell.go:Getenv(POSH_THEME) - 20.334µs
[DEBUG] 16:52:48.733 shell_unix.go:Platform:87 → darwin
[TRACE] 16:52:48.733 shell.go:resolveConfigPath() - 30.667µs
[TRACE] 16:52:48.733 shell.go:Init() - 11.192458ms
[TRACE] 16:52:48.733 shell.go:Flags() - 41ns
[TRACE] 16:52:48.733 config.go:loadConfig() - 584.583µs
[TRACE] 16:52:48.733 shell.go:Flags() - 83ns
[DEBUG] 16:52:48.733 shell.go:Getenv:326 → NO DATA
[TRACE] 16:52:48.733 shell.go:Getenv(OMP_CACHE_DISABLED) - 4.791µs
[DEBUG] 16:52:48.733 shell.go:Shell:601 → no shell name provided in flags, trying to detect it
[DEBUG] 16:52:48.733 shell.go:Shell:609 → process name: zsh
[TRACE] 16:52:48.733 shell.go:Shell() - 118.5µs
[DEBUG] 16:52:48.733 shell.go:Getenv:326 → 5.9
[TRACE] 16:52:48.733 shell.go:Getenv(POSH_SHELL_VERSION) - 7.458µs
[DEBUG] 16:52:48.733 debug.go:PrintDebug:22 → Segment: Title
[DEBUG] 16:52:48.733 text.go:Render:71 → Rendering template: {{ .Shell }} in {{ .Folder }}
[TRACE] 16:52:48.733 shell_unix.go:Root() - 583ns
[TRACE] 16:52:48.733 shell.go:Shell() - 42ns
[TRACE] 16:52:48.733 shell.go:StatusCodes() - 41ns
[DEBUG] 16:52:48.734 shell_unix.go:IsWsl:35 → false
[TRACE] 16:52:48.734 shell_unix.go:IsWsl() - 9.291µs
[DEBUG] 16:52:48.734 shell.go:TemplateCache:782 → environment: [SHELL=/etc/profiles/per-user/nunocf/bin/zsh XPC_FLAGS=0x0 __CFBundleIdentifier=net.kovidgoyal.kitty SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.vhV2rZbllQ/Listeners PWD=/Users/nunocf/nixcfg LOGNAME=nunocf LaunchInstanceID=48E89E9C-084F-4D30-978F-AA95D3EAFB04 COMMAND_MODE=unix2003 HOME=/Users/nunocf SECURITYSESSIONID=186b3 TMPDIR=/var/folders/mc/5ppszvwj1ljgfysq0yf8nr5r0000gp/T/ USER=nunocf SHLVL=1 XPC_SERVICE_NAME=0 PATH=/Users/nunocf/.nix-profile/bin:/etc/profiles/per-user/nunocf/bin:/run/current-system/sw/bin:/nix/var/nix/profiles/default/bin:/opt/homebrew/bin:/usr/local/bin:/usr/bin:/usr/sbin:/bin:/sbin __CF_USER_TEXT_ENCODING=0x1F6:0x0:0x0 LANG=en_US.UTF-8 KITTY_WINDOW_ID=1 WINDOWID=511 TERM=xterm-kitty COLORTERM=truecolor KITTY_PID=12235 KITTY_PUBLIC_KEY=1:!YvYhZ(anXAlKBB2hoxE35ZidDTk%UlI0)#;WgtU TERMINFO=/nix/store/6ygjccnkc18p26a0siygm0dgbdlv16fr-kitty-0.35.1/Applications/kitty.app/Contents/Resources/kitty/terminfo KITTY_INSTALLATION_DIR=/nix/store/6ygjccnkc18p26a0siygm0dgbdlv16fr-kitty-0.35.1/Applications/kitty.app/Contents/Resources/kitty OLDPWD=/Users/nunocf __ETC_ZSHENV_SOURCED=1 __NIX_DARWIN_SET_ENVIRONMENT_DONE=1 EDITOR=nvim HOMEBREW_BUNDLE_FILE=/nix/store/w5fxxc3jyizb3iwhhj9v5m642hhyzlbj-Brewfile HOMEBREW_BUNDLE_NO_LOCK=1 NIX_PATH=/Users/nunocf/.nix-defexpr/channels:darwin-config=/Users/nunocf/.nixpkgs/darwin-configuration.nix:/nix/var/nix/profiles/per-user/root/channels NIX_SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt PAGER=less TERMINFO_DIRS=/Users/nunocf/.nix-profile/share/terminfo:/etc/profiles/per-user/nunocf/share/terminfo:/run/current-system/sw/share/terminfo:/nix/var/nix/profiles/default/share/terminfo:/usr/share/terminfo XDG_CONFIG_DIRS=/Users/nunocf/.nix-profile/etc/xdg:/etc/profiles/per-user/nunocf/etc/xdg:/run/current-system/sw/etc/xdg:/nix/var/nix/profiles/default/etc/xdg XDG_DATA_DIRS=/Users/nunocf/.nix-profile/share:/etc/profiles/per-user/nunocf/share:/run/current-system/sw/share:/nix/var/nix/profiles/default/share NIX_USER_PROFILE_DIR=/nix/var/nix/profiles/per-user/nunocf NIX_PROFILES=/nix/var/nix/profiles/default /run/current-system/sw /etc/profiles/per-user/nunocf /Users/nunocf/.nix-profile NIX_REMOTE=daemon __HM_SESS_VARS_SOURCED=1 CLICOLOR=1 TERMINAL=kitty __HM_ZSH_SESS_VARS_SOURCED=1 POSH_THEME=/Users/nunocf/.config/oh-my-posh/config.json POSH_SHELL_VERSION=5.9 POSH_PID=12237 POWERLINE_COMMAND=oh-my-posh CONDA_PROMPT_MODIFIER=false POSH_PROMPT_COUNT=4 ZLE_RPROMPT_INDENT=0 POSH_CURSOR_LINE=67 POSH_CURSOR_COLUMN=1 _=/etc/profiles/per-user/nunocf/bin/oh-my-posh]
[TRACE] 16:52:48.734 shell.go:GOOS() - 83ns
[DEBUG] 16:52:48.734 shell.go:Pwd:356 → /Users/nunocf/nixcfg
[TRACE] 16:52:48.734 shell.go:Pwd() - 11.541µs
[TRACE] 16:52:48.734 shell.go:GOOS() - 42ns
[TRACE] 16:52:48.734 shell.go:GOOS() - 41ns
[TRACE] 16:52:48.734 shell.go:GOOS() - 41ns
[TRACE] 16:52:48.734 shell.go:GOOS() - 42ns
[TRACE] 16:52:48.734 shell.go:GOOS() - 42ns
[TRACE] 16:52:48.734 shell.go:GOOS() - 42ns
[TRACE] 16:52:48.734 shell.go:GOOS() - 83ns
[TRACE] 16:52:48.734 shell.go:GOOS() - 42ns
[DEBUG] 16:52:48.734 shell.go:User:494 → nunocf
[TRACE] 16:52:48.734 shell.go:User() - 4.667µs
[DEBUG] 16:52:48.734 shell.go:Host:511 → Nunos-MBP
[TRACE] 16:52:48.734 shell.go:Host() - 5.917µs
[TRACE] 16:52:48.734 shell.go:GOOS() - 0s
[DEBUG] 16:52:48.734 shell.go:Getenv:326 → 1
[TRACE] 16:52:48.734 shell.go:Getenv(SHLVL) - 1.667µs
[TRACE] 16:52:48.734 shell.go:TemplateCache() - 90.416µs
[DEBUG] 16:52:48.734 shell.go:Getenv:326 → 67
[TRACE] 16:52:48.734 shell.go:Getenv(POSH_CURSOR_LINE) - 5.667µs
[DEBUG] 16:52:48.734 shell.go:Getenv:326 → 1
[TRACE] 16:52:48.734 shell.go:Getenv(POSH_CURSOR_COLUMN) - 1.75µs
[TRACE] 16:52:48.734 shell.go:Flags() - 42ns
[TRACE] 16:52:48.734 shell.go:Flags() - 0s
[TRACE] 16:52:48.734 shell.go:Shell() - 0s
[TRACE] 16:52:48.734 shell.go:Shell() - 42ns
[TRACE] 16:52:48.734 shell.go:Flags() - 41ns
[TRACE] 16:52:48.734 shell.go:Pwd() - 84ns
[TRACE] 16:52:48.734 shell.go:GOOS() - 42ns
[DEBUG] 16:52:48.734 segment.go:SetEnabled:533 → Segment: Git
[TRACE] 16:52:48.734 shell.go:Flags() - 125ns
[DEBUG] 16:52:48.734 shell_unix.go:IsWsl:35 → false
[TRACE] 16:52:48.734 shell_unix.go:IsWsl() - 2µs
[TRACE] 16:52:48.734 shell_unix.go:IsWsl2() - 3.875µs
[TRACE] 16:52:48.734 shell.go:Pwd() - 84ns
[TRACE] 16:52:48.734 shell.go:GOOS() - 41ns
[TRACE] 16:52:48.734 shell.go:GOOS() - 42ns
[DEBUG] 16:52:48.734 segment.go:SetEnabled:533 → Segment: Path
[TRACE] 16:52:48.734 shell.go:Pwd() - 84ns
[TRACE] 16:52:48.734 shell.go:Shell() - 41ns
[TRACE] 16:52:48.734 shell.go:Shell() - 42ns
[DEBUG] 16:52:48.734 properties.go:GetBool:22 → mapped_locations_enabled: true
[DEBUG] 16:52:48.734 properties.go:GetString:28 → 
[DEBUG] 16:52:48.734 properties.go:GetString:28 → 
[TRACE] 16:52:48.734 shell.go:GOOS() - 42ns
[DEBUG] 16:52:48.734 properties.go:GetString:28 → ~
[DEBUG] 16:52:48.734 properties.go:GetKeyValueMap:46 → mapped_locations: map[]
[TRACE] 16:52:48.734 shell.go:PathSeparator() - 0s
[TRACE] 16:52:48.734 shell.go:GOOS() - 41ns
[DEBUG] 16:52:48.734 shell.go:CommandPath:553 → /etc/profiles/per-user/nunocf/bin/git
[TRACE] 16:52:48.734 shell.go:GOOS() - 41ns
[TRACE] 16:52:48.734 shell.go:CommandPath(git) - 56.834µs
[TRACE] 16:52:48.734 shell.go:HasCommand(git) - 58.875µs
[TRACE] 16:52:48.734 shell.go:Pwd() - 42ns
[TRACE] 16:52:48.734 shell.go:GOOS() - 41ns
[TRACE] 16:52:48.734 shell.go:GOOS() - 41ns
[TRACE] 16:52:48.734 shell.go:HasParentFilePath(.git) - 7.875µs
[TRACE] 16:52:48.734 shell.go:PathSeparator() - 41ns
[TRACE] 16:52:48.734 shell.go:PathSeparator() - 41ns
[DEBUG] 16:52:48.734 properties.go:GetStringArray:52 → exclude_folders: []
[TRACE] 16:52:48.734 shell.go:GOOS() - 41ns
[TRACE] 16:52:48.734 shell.go:GOOS() - 83ns
[TRACE] 16:52:48.734 shell.go:GOOS() - 42ns
[TRACE] 16:52:48.734 shell.go:PathSeparator() - 41ns
[TRACE] 16:52:48.734 shell.go:GOOS() - 42ns
[DEBUG] 16:52:48.734 properties.go:GetBool:22 → fetch_user: false
[TRACE] 16:52:48.734 shell.go:GOOS() - 41ns
[TRACE] 16:52:48.734 shell.go:GOOS() - 42ns
[TRACE] 16:52:48.734 shell.go:PathSeparator() - 42ns
[TRACE] 16:52:48.734 shell.go:GOOS() - 42ns
[TRACE] 16:52:48.734 shell.go:GOOS() - 42ns
[TRACE] 16:52:48.734 shell.go:GOOS() - 42ns
[TRACE] 16:52:48.734 shell.go:GOOS() - 41ns
[TRACE] 16:52:48.734 shell.go:GOOS() - 41ns
[TRACE] 16:52:48.734 shell.go:PathSeparator() - 42ns
[TRACE] 16:52:48.734 shell.go:GOOS() - 83ns
[TRACE] 16:52:48.734 shell.go:PathSeparator() - 42ns
[TRACE] 16:52:48.734 shell.go:GOOS() - 42ns
[TRACE] 16:52:48.734 shell.go:PathSeparator() - 42ns
[TRACE] 16:52:48.734 shell.go:GOOS() - 42ns
[DEBUG] 16:52:48.734 properties.go:GetString:28 → NO DATA
[TRACE] 16:52:48.734 shell.go:PathSeparator() - 42ns
[DEBUG] 16:52:48.734 shell.go:Getenv:326 → NO DATA
[TRACE] 16:52:48.734 shell.go:Getenv(POSH_GIT_STATUS) - 1.917µs
[TRACE] 16:52:48.734 shell.go:PathSeparator() - 41ns
[DEBUG] 16:52:48.734 properties.go:GetBool:22 → fetch_status: true
[DEBUG] 16:52:48.734 properties.go:GetString:28 → full
[DEBUG] 16:52:48.734 properties.go:GetStringArray:52 → cycle: []
[DEBUG] 16:52:48.734 properties.go:GetStringArray:52 →ATA
ore_status: []
[TRACE] 16:52:48.734 shell.go:GOOS() - 41ns
[TRACE] 16:52:48.734 shell.go:PathSeparator() - 42ns
[DEBUG] 16:52:48.734 properties.go:GetString:28 → /
[DEBUG] 16:52:48.734 properties.go:GetKeyValueMap:46 → status_formats: map[]
[DEBUG] 16:52:48.734 properties.go:GetBool:22 → cycle_folder_separator: false
[DEBUG] 16:52:48.734 properties.go:GetString:28 → %s
[DEBUG] 16:52:48.734 properties.go:GetKeyValueMap:46 → untracked_modes: map[]
[DEBUG] 16:52:48.734 properties.go:GetString:28 → %s
[DEBUG] 16:52:48.734 properties.go:GetKeyValueMap:46 → ignore_submodules: map[]
[DEBUG] 16:52:48.734 properties.go:GetString:28 → %s
[DEBUG] 16:52:48.734 properties.go:GetString:28 → %s
[TRACE] 16:52:48.734 shell.go:PathSeparator() - 41ns
[TRACE] 16:52:48.734 shell.go:Pwd() - 0s
[DEBUG] 16:52:48.734 shell_unix.go:IsWsl:35 → false
[TRACE] 16:52:48.734 shell_unix.go:IsWsl() - 2µs
[TRACE] 16:52:48.734 shell.go:StackCount() - 42ns
[TRACE] 16:52:48.734 shell_unix.go:DirIsWritable(/Users/nunocf/nixcfg) - 9.584µs
[TRACE] 16:52:48.734 shell.go:TemplateCache() - 83ns
[DEBUG] 16:52:48.742 shell.go:RunCommand:531 ↓
    # branch.oid 1de127b709035142a4023ecc3fc9a06d76171b27
    # branch.head master
    # branch.upstream origin/master
    # branch.ab +2 -0
    1 .M N... 100644 100644 100644 11a5911de203dd47aa537dd29bab7be275f68c42 11a5911de203dd47aa537dd29bab7be275f68c42 flake.nix
    1 .M N... 100644 100644 100644 c153740d01fb2e043ff81beb4d1d02dfa31e710a c153740d01fb2e043ff81beb4d1d02dfa31e710a modules/darwin/default.nix
    1 .M N... 100644 100644 100644 f89193535c72e3e8a4888ce9274cfe6e56e2841f f89193535c72e3e8a4888ce9274cfe6e56e2841f modules/home-manager/default.nix
    1 .M N... 100644 100644 100644 b9f29b826c231cc7afb3bf75b70e7d44754979db b9f29b826c231cc7afb3bf75b70e7d44754979db modules/home-manager/kitty/default.nix
[TRACE] 16:52:48.742 shell.go:RunCommand(git -C /Users/nunocf/nixcfg --no-optional-locks -c core.quotepath=false -c color.status=false status -unormal --branch --porcelain=2) - 7.857083ms
[DEBUG] 16:52:48.742 properties.go:GetString:28 → NO DATA
[DEBUG] 16:52:48.742 properties.go:GetInt:40 → branch_max_length: 0
[DEBUG] 16:52:48.742 shell.go:HasFolder:438 → false
[TRACE] 16:52:48.742 shell.go:HasFolder(/Users/nunocf/nixcfg/.git/rebase-merge) - 12µs
[DEBUG] 16:52:48.742 shell.go:HasFolder:438 → false
[TRACE] 16:52:48.742 shell.go:HasFolder(/Users/nunocf/nixcfg/.git/rebase-apply) - 2.583µs
[DEBUG] 16:52:48.742 properties.go:GetString:28 → @
[DEBUG] 16:52:48.742 shell.go:HasFilesInDir:409 → false
[TRACE] 16:52:48.742 shell.go:HasFilesInDir(MERGE_MSG) - 117.917µs
[DEBUG] 16:52:48.742 shell.go:HasFilesInDir:409 → false
[TRACE] 16:52:48.742 shell.go:HasFilesInDir(CHERRY_PICK_HEAD) - 2.875µs
[DEBUG] 16:52:48.742 shell.go:HasFilesInDir:409 → false
[TRACE] 16:52:48.742 shell.go:HasFilesInDir(REVERT_HEAD) - 2.333µs
[DEBUG] 16:52:48.742 shell.go:HasFilesInDir:409 → false
[TRACE] 16:52:48.742 shell.go:HasFilesInDir(sequencer/todo) - 2.084µs
[DEBUG] 16:52:48.742 properties.go:GetString:28 → ↑
[DEBUG] 16:52:48.742 properties.go:GetBool:22 → fetch_upstream_icon: false
[TRACE] 16:52:48.742 shell.go:TemplateCache() - 458ns
[DEBUG] 16:52:48.742 text.go:Render:71 → Rendering template:  {{ .HEAD }}{{ if or (.Working.Changed) (.Staging.Changed) }}*{{ end }} <p:waveAqua2>{{ if gt .Behind 0 }}⇣{{ end }}{{ if gt .Ahead 0 }}⇡{{ end }}</>
[DEBUG] 16:52:48.742 text.go:Render:71 → Rendering template: {{ .Path }}
[TRACE] 16:52:48.742 shell.go:TemplateCache() - 125ns
[TRACE] 16:52:48.742 shell.go:Shell() - 292ns
[TRACE] 16:52:48.742 shell.go:TemplateCache() - 125ns
[TRACE] 16:52:48.742 shell.go:Shell() - 83ns
[DEBUG] 16:52:48.742 shell.go:Getenv:326 → NO DATA
[TRACE] 16:52:48.742 shell.go:Getenv(TERM_PROGRAM) - 2.625µs
[DEBUG] 16:52:48.742 text.go:Render:71 → Rendering template: plain
[DEBUG] 16:52:48.742 text.go:Render:71 → Rendering template: plain
[TRACE] 16:52:48.742 shell.go:Shell() - 42ns
[TRACE] 16:52:48.742 shell.go:Shell() - 42ns
[TRACE] 16:52:48.742 shell.go:Shell() - 41ns
[TRACE] 16:52:48.742 shell.go:Shell() - 41ns
[TRACE] 16:52:48.742 shell.go:Flags() - 42ns
[TRACE] 16:52:48.742 shell.go:Pwd() - 167ns
[TRACE] 16:52:48.742 shell.go:GOOS() - 167ns
[DEBUG] 16:52:48.742 segment.go:SetEnabled:533 → Segment: Executiontime
[DEBUG] 16:52:48.742 properties.go:GetBool:22 → always_enabled: false
[TRACE] 16:52:48.742 shell.go:ExecutionTime() - 41ns
[DEBUG] 16:52:48.742 properties.go:GetFloat64:34 → threshold: 5000.000000
[TRACE] 16:52:48.742 shell.go:Shell() - 42ns
[TRACE] 16:52:48.742 shell.go:Shell() - 42ns
[TRACE] 16:52:48.742 shell.go:Shell() - 0s
[TRACE] 16:52:48.742 shell.go:Shell() - 0s
[TRACE] 16:52:48.742 shell.go:Flags() - 42ns
[TRACE] 16:52:48.742 shell.go:Pwd() - 83ns
[TRACE] 16:52:48.742 shell.go:GOOS() - 42ns
[DEBUG] 16:52:48.742 segment.go:SetEnabled:533 → Segment: Text
[TRACE] 16:52:48.742 shell.go:TemplateCache() - 41ns
[DEBUG] 16:52:48.742 text.go:Render:71 → Rendering template: λ
[TRACE] 16:52:48.742 shell.go:Shell() - 42ns
[DEBUG] 16:52:48.742 shell.go:Getenv:326 → NO DATA
[TRACE] 16:52:48.742 shell.go:Getenv(TERM_PROGRAM) - 1.333µs
[DEBUG] 16:52:48.742 text.go:Render:71 → Rendering template: {{if gt .Code 0}}p:peachRed{{end}}
[TRACE] 16:52:48.743 shell.go:TemplateCache() - 41ns
[DEBUG] 16:52:48.743 text.go:Render:71 → Rendering template: {{if eq .Code 0}}p:springGreen{{end}}
[TRACE] 16:52:48.743 shell.go:TemplateCache() - 83ns
[DEBUG] 16:52:48.743 text.go:Render:71 → Rendering template: plain
[TRACE] 16:52:48.743 shell.go:Shell() - 42ns
[TRACE] 16:52:48.743 shell.go:Shell() - 42ns
[TRACE] 16:52:48.743 shell.go:Flags() - 0s
[TRACE] 16:52:48.743 shell.go:Shell() - 41ns
[TRACE] 16:52:48.743 shell.go:Shell() - 42ns
[TRACE] 16:52:48.743 shell.go:Flags() - 41ns
[DEBUG] 16:52:48.743 shell.go:Getenv:326 → NO DATA
[TRACE] 16:52:48.743 shell.go:Getenv(OMP_CACHE_DIR) - 1.75µs
[DEBUG] 16:52:48.743 shell.go:Getenv:326 → NO DATA
[TRACE] 16:52:48.743 shell.go:Getenv(XDG_CACHE_HOME) - 1.209µs
[TRACE] 16:52:48.743 shell_unix.go:CachePath() - 13.75µs
[TRACE] 16:52:48.743 shell.go:Flags() - 42ns
JanDeDobbeleer commented 5 months ago

@nunocf add disable_cursor_positioning: true at the top on your configuration. Somehow we can't run stty -g on your device. This will prevent us from fetching the current cursor position and thus always print your initial newline on terminal start.

nunocf commented 5 months ago

That fixed it! Thank you! It's been bugging me for a bit :)

github-actions[bot] commented 2 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.