From 766dc1ac8b0e55548786abed81856315866954d1 Mon Sep 17 00:00:00 2001 From: Jan De Dobbeleer Date: Sun, 16 May 2021 19:13:15 +0200 Subject: [PATCH] fix: set powerline env var resolves #133 --- src/init/omp.bash | 1 + src/init/omp.fish | 1 + src/init/omp.ps1 | 1 + src/init/omp.zsh | 1 + 4 files changed, 4 insertions(+) diff --git a/src/init/omp.bash b/src/init/omp.bash index 9f4729a9..2e47f30d 100644 --- a/src/init/omp.bash +++ b/src/init/omp.bash @@ -1,4 +1,5 @@ export POSH_THEME=::CONFIG:: +export POWERLINE_COMMAND="oh-my-posh" TIMER_START="/tmp/${USER}.start.$$" diff --git a/src/init/omp.fish b/src/init/omp.fish index 27f5610f..0464c2df 100644 --- a/src/init/omp.fish +++ b/src/init/omp.fish @@ -1,4 +1,5 @@ set -g posh_theme ::CONFIG:: +set -g POWERLINE_COMMAND "oh-my-posh" function fish_prompt set -l omp_stack_count (count $dirstack) diff --git a/src/init/omp.ps1 b/src/init/omp.ps1 index de8a1f51..be26d297 100644 --- a/src/init/omp.ps1 +++ b/src/init/omp.ps1 @@ -1,6 +1,7 @@ # Powershell doesn't default to UTF8 just yet, so we're forcing it as there are too many problems # that pop up when we don't [console]::InputEncoding = [console]::OutputEncoding = New-Object System.Text.UTF8Encoding +$env:POWERLINE_COMMAND = "oh-my-posh" $global:PoshSettings = New-Object -TypeName PSObject -Property @{ Theme = ""; diff --git a/src/init/omp.zsh b/src/init/omp.zsh index 339bcb66..d3073dc5 100644 --- a/src/init/omp.zsh +++ b/src/init/omp.zsh @@ -1,4 +1,5 @@ export POSH_THEME=::CONFIG:: +export POWERLINE_COMMAND="oh-my-posh" function omp_preexec() { omp_start_time=$(::OMP:: --millis)