<commit_before>function fish_prompt --description "Write out Marks' custom prompt"

  # Just calculate these once, to save a few cycles when displaying the prompt
  if not set -q __fish_prompt_hostname
    set -g __fish_prompt_hostname (hostname|cut -d . -f 1)
  end

  if not set -q __fish_prompt_normal
    set -g __fish_prompt_normal (set_color normal)
  end

  switch $USER

    case root # root still runs bash, so this isn't really necessary

    if not set -q __fish_prompt_cwd
      if set -q fish_color_cwd_root
        set -g __fish_prompt_cwd (set_color $fish_color_cwd_root)
      else
        set -g __fish_prompt_cwd (set_color $fish_color_cwd)
      end
    end

    # echo -n -s "$USER" @ "$__fish_prompt_hostname" ' ' "$__fish_prompt_cwd" (prompt_pwd) "$__fish_prompt_normal" '# '
    echo -n -s "$__fish_prompt_normal" [ "$USER" @ "$__fish_prompt_hostname" _ "$__fish_prompt_cwd" "$PWD" "$__fish_prompt_normal" ']# '

    case '*'

    if not set -q __fish_prompt_cwd
      set -g __fish_prompt_cwd (set_color $fish_color_cwd)
    end

    # echo -n -s "$USER" @ "$__fish_prompt_hostname" ' ' "$__fish_prompt_cwd" (prompt_pwd) "$__fish_prompt_normal" '> '
    echo -n -s "$__fish_prompt_cwd" [ "$USER" ' ' \
               (set_color cyan) "$__fish_prompt_hostname" ' ' \
               (set_color blue) (prompt_pwd) \
               "$__fish_prompt_cwd" ] \
               (set_color red)(__fish_git_prompt | tr -d ' ') \
               "$__fish_prompt_cwd" '{ ' "$__fish_prompt_normal"

  end
end<commit_msg>Clean up fish prompt but don't change anything<commit_after>function fish_prompt --description "Write out Marks' custom prompt"

  # Just calculate these once, to save a few cycles when displaying the prompt
  if not set -q __fish_prompt_hostname
    set -g __fish_prompt_hostname (hostname|cut -d . -f 1)
  end

  if not set -q __fish_prompt_normal
    set -g __fish_prompt_normal (set_color normal)
  end

  switch $USER

    case root # root still runs bash, so this isn't really necessary

    if not set -q __fish_prompt_cwd
      if set -q fish_color_cwd_root
        set -g __fish_prompt_cwd (set_color $fish_color_cwd_root)
      else
        set -g __fish_prompt_cwd (set_color $fish_color_cwd)
      end
    end

    # echo -n -s "$USER" @ "$__fish_prompt_hostname" ' ' "$__fish_prompt_cwd" (prompt_pwd) "$__fish_prompt_normal" '# '
    echo -n -s "$__fish_prompt_normal" [ "$USER" @ "$__fish_prompt_hostname" _ "$__fish_prompt_cwd" "$PWD" "$__fish_prompt_normal" ']# '

    case '*'

    if not set -q __fish_prompt_cwd
      set -g __fish_prompt_cwd (set_color $fish_color_cwd)
    end

    echo -n -s $__fish_prompt_cwd [ $USER ' '
    set_color cyan
    echo -n -s $__fish_prompt_hostname ' '
    set_color blue
    prompt_pwd | tr -d '\n'
    echo -n -s $__fish_prompt_cwd ]
    set_color red
    __fish_git_prompt | tr -d ' '
    echo -s $__fish_prompt_cwd '{ ' $__fish_prompt_normal

  end
end
{'fraction_non_alphanumeric': 0.09836623553437712, 'fraction_numerical': 0.0006807351940095302, 'mean_word_length': 3.009549795361528, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 0, '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': '5557780', 'n_tokens_mistral': 1116, 'n_tokens_neox': 1042, 'n_words': 284}