Skip to content

Commit

Permalink
refactor(zsh:p10k): disable gitstatusd if running on Raspberry Pi
Browse files Browse the repository at this point in the history
  ## what
  - disable gitstatusd if running on Raspberry Pi

  ## how

  ## why
  - don't need to run gitstatusd on smaller hardware

  ## where
  - ./tools/zsh/theme/powerlevel10k/classic.zsh

  ## usage

  ## issue or pull request
  • Loading branch information
Clumsy-Coder committed Feb 6, 2024
1 parent 0f29d0b commit 6217e63
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tools/zsh/theme/powerlevel10k/classic.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -1672,4 +1672,10 @@ typeset -g POWERLEVEL9K_CONFIG_FILE=${${(%):-%x}:a}

# disable gitstatusd
# obtained from https://github.com/romkatv/powerlevel10k/issues/246#issuecomment-538896199
POWERLEVEL9K_DISABLE_GITSTATUS=true
if [[ -e "/proc/device-tree/model" ]]; then
# disable gitstatusd if running on Raspberry pi
if grep -qi "raspberry" "/proc/device-tree/model" ; then
POWERLEVEL9K_DISABLE_GITSTATUS=true
fi
fi

0 comments on commit 6217e63

Please sign in to comment.