mirror of
https://git.decapod.one/brethil/dotfiles
synced 2024-11-21 19:11:30 +01:00
zsh: theme: do not increase shell level when using tmux
This commit is contained in:
parent
fc0410eff3
commit
4b73ed209f
|
@ -41,7 +41,7 @@ function job_prompt() {
|
||||||
|
|
||||||
function shlvl_prompt() {
|
function shlvl_prompt() {
|
||||||
local SHLVL_PROMPT
|
local SHLVL_PROMPT
|
||||||
if [[ -n "$BYOBU_PREFIX" ]]; then
|
if [[ -n "$TMUX" ]]; then
|
||||||
SHLVL_PROMPT="%(3L.%K{161}%F{255}%B $((SHLVL-1)) %f%b%k.)" # Shows SHLVL on a magenta background if SHLVL > 1
|
SHLVL_PROMPT="%(3L.%K{161}%F{255}%B $((SHLVL-1)) %f%b%k.)" # Shows SHLVL on a magenta background if SHLVL > 1
|
||||||
else
|
else
|
||||||
SHLVL_PROMPT="%(2L.%K{161}%F{255}%B %L %f%b%k.)" # Shows SHLVL on a magenta background if SHLVL > 1
|
SHLVL_PROMPT="%(2L.%K{161}%F{255}%B %L %f%b%k.)" # Shows SHLVL on a magenta background if SHLVL > 1
|
||||||
|
|
Loading…
Reference in New Issue
Block a user