mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-31 13:57:26 -08:00
parent
2d3886159f
commit
db557e4b31
|
@ -12,7 +12,7 @@ PS2="$(::OMP:: print secondary --config="$POSH_THEME" --shell=bash --shell-versi
|
||||||
function _set_posh_cursor_position() {
|
function _set_posh_cursor_position() {
|
||||||
# not supported in Midnight Commander
|
# not supported in Midnight Commander
|
||||||
# see https://github.com/JanDeDobbeleer/oh-my-posh/issues/3415
|
# see https://github.com/JanDeDobbeleer/oh-my-posh/issues/3415
|
||||||
if [[ -v MC_SID ]];then
|
if [[ -v MC_SID ]] || [[ $TERM_PROGRAM == "WarpTerminal" ]]; then
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
local pos
|
local pos
|
||||||
|
|
|
@ -10,7 +10,7 @@ PS2="$(::OMP:: print secondary --config="$POSH_THEME" --shell=zsh)"
|
||||||
function _set_posh_cursor_position() {
|
function _set_posh_cursor_position() {
|
||||||
# not supported in Midnight Commander
|
# not supported in Midnight Commander
|
||||||
# see https://github.com/JanDeDobbeleer/oh-my-posh/issues/3415
|
# see https://github.com/JanDeDobbeleer/oh-my-posh/issues/3415
|
||||||
if [[ -v MC_SID ]];then
|
if [[ -v MC_SID ]] || [[ $TERM_PROGRAM == "WarpTerminal" ]]; then
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
local pos
|
local pos
|
||||||
|
|
Loading…
Reference in a new issue