<commit_before>autoload -U promptinit && promptinit

#
# Inspired by https://github.com/miekg/lean/
# Built using `Blox`: https://github.com/yardnsm/blox-zsh-theme
#

# ---------------------------------------------
# Blox settings

BLOX_CONF__ONELINE=true
BLOX_CONF__NEWLINE=true

BLOX_BLOCK__SYMBOL_SYMBOL='λ'
BLOX_BLOCK__SYMBOL_EXIT_SYMBOL='λ'
BLOX_BLOCK__SYMBOL_COLOR=140

BLOX_BLOCK__GIT_CLEAN_SYMBOL='+'
BLOX_BLOCK__GIT_DIRTY_SYMBOL='-'

BLOX_SEG__UPPER_LEFT=(blox_block__host blox_block__tmux blox_block__bgjobs blox_block__symbol)

BLOX_SEG__UPPER_RIGHT=(blox_block__exec_time blox_block__vi \
  blox_block__cwd_ng blox_block__nodejs_ng blox_block__git blox_block__git_enhanced)

# ---------------------------------------------
# Custom blocks

# Inidiaction when inside a tmux session
blox_block__tmux() {
  [[ -n "$TMUX" ]] && echo "%F{yellow}t%f"
}

# Improved CWD block
blox_block__cwd_ng() {
  echo "%F{140}%(4~|.../%3~|%~)%f"
}

# Output node version only if nvm was loaded
blox_block__nodejs_ng() {
  if ! $(type node | grep -q 'shell function'); then
    blox_block__nodejs
  fi<commit_msg>Update prompt for ssh<commit_after>autoload -U promptinit && promptinit

#
# Inspired by https://github.com/miekg/lean/
# Built using `Blox`: https://github.com/yardnsm/blox-zsh-theme
#

# ---------------------------------------------
# Blox settings

BLOX_CONF__ONELINE=true
BLOX_CONF__NEWLINE=true

BLOX_BLOCK__SYMBOL_SYMBOL='λ'
BLOX_BLOCK__SYMBOL_EXIT_SYMBOL='λ'
BLOX_BLOCK__SYMBOL_COLOR=140

BLOX_BLOCK__GIT_CLEAN_SYMBOL='+'
BLOX_BLOCK__GIT_DIRTY_SYMBOL='-'

BLOX_SEG__UPPER_LEFT=(blox_block__host blox_block__tmux blox_block__bgjobs blox_block__symbol)

BLOX_SEG__UPPER_RIGHT=(blox_block__exec_time blox_block__vi \
  blox_block__cwd_ng blox_block__nodejs_ng blox_block__git blox_block__git_enhanced)

# Custom strcture in SSH
if [[ -n $SSH_CONNECTION ]]; then
  BLOX_SEG__UPPER_RIGHT=(blox_block__vi blox_block__cwd_ng blox_block__git)
  BLOX_BLOCK__GIT_UNPULLED_SYMBOL=''
fi

# ---------------------------------------------
# Custom blocks

# Inidiaction when inside a tmux session
blox_block__tmux() {
  [[ -n "$TMUX" ]] && echo "%F{yellow}t%f"
}

# Improved CWD block
blox_block__cwd_ng() {
  echo "%F{140}%(4~|.../%3~|%~)%f"
}

# Output node version only if nvm was loaded
blox_block__nodejs_ng() {
  if ! $(type node | grep -q 'shell function'); then
    blox_block__nodejs
  fi
{'fraction_non_alphanumeric': 0.177109440267335, 'fraction_numerical': 0.006683375104427736, 'mean_word_length': 3.9483471074380163, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1148076', 'n_tokens_mistral': 966, 'n_tokens_neox': 926, 'n_words': 151}