<commit_before>set -x SHELL /usr/bin/fish

if status --is-login
  cd $HOME
  # which tmux; and tmux attach -t root; or tmux new -s root
  test -f .login.fish; and source .login.fish
end

if status --is-interactive
  test -f .local.fish; and source .local.fish
  set -x LESS "--quit-if-one-screen -R -iMX"
  set -x LS_COLORS "di=32:ln=36:pi=31:so=33:bd=44;37:cd=44;37:ex=35"
  set -x PATH ~/bin $PATH

  alias dir "ls -lh"
  alias rm "rm -i"
  alias vim "env SHELL=sh vim"

  set __CMD_STACK
  function push_cmd
    set __CMD_STACK $__CMD_STACK "$argv"
  end

  function pop_cmd
    test -z "$__CMD_STACK"; and return
    set -l n (count $__CMD_STACK)
    commandline -i $__CMD_STACK[$n]
    set -e __CMD_STACK[$n]
  end

  function fish_user_key_bindings
    bind \ek  history-token-search-backward
    bind \ej  history-token-search-forward
    # commandline seems to eval from right to left...
    bind \e\; 'commandline -f execute accept-autosuggestion'
    # invoking manual
    bind \eh 'man (commandline -po)[1]; commandline -f repaint'
    # command stack
    bind \eq 'push_cmd (commandline); commandline -f kill-whole-line'
    # quoting whole line
    bind \e\' 'push_cmd \"(commandline)\"; commandline -f repaint kill-whole-line'
  end

  function fish_right_prompt
    set_color yellow
    printf '(%s) ' (date +%H:%M)
    pop_cmd
    set_color normal
  end
end

# vi: ft=vb
<commit_msg>add message when exec man<commit_after>set -x SHELL /usr/bin/fish

if status --is-login
  cd $HOME
  # which tmux; and tmux attach -t root; or tmux new -s root
  test -f .login.fish; and source .login.fish
end

if status --is-interactive
  test -f .local.fish; and source .local.fish
  set -x LESS "--quit-if-one-screen -R -iMX"
  set -x LS_COLORS "di=32:ln=36:pi=31:so=33:bd=44;37:cd=44;37:ex=35"
  set -x PATH ~/bin $PATH

  alias dir "ls -lh"
  alias rm "rm -i"
  alias vim "env SHELL=sh vim"

  set __CMD_STACK
  function push_cmd
    set __CMD_STACK $__CMD_STACK "$argv"
  end

  function pop_cmd
    test -z "$__CMD_STACK"; and return
    set -l n (count $__CMD_STACK)
    commandline -i $__CMD_STACK[$n]
    set -e __CMD_STACK[$n]
  end

  function fish_user_key_bindings
    bind \ek  history-token-search-backward
    bind \ej  history-token-search-forward
    # commandline seems to eval from right to left...
    bind \e\; 'commandline -f execute accept-autosuggestion'
    # invoking manual
    bind \eh 'echo get help;man (commandline -po)[1]; commandline -f repaint'
    # command stack
    bind \eq 'push_cmd (commandline); commandline -f kill-whole-line'
    # quoting whole line
    bind \e\' 'push_cmd \"(commandline)\"; commandline -f repaint kill-whole-line'
  end

  function fish_right_prompt
    set_color yellow
    printf '(%s) ' (date +%H:%M)
    pop_cmd
    set_color normal
  end
end

# vi: ft=vb

{'fraction_non_alphanumeric': 0.1165014164305949, 'fraction_numerical': 0.013456090651558074, 'mean_word_length': 2.885832187070151, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1939310', 'n_tokens_mistral': 1101, 'n_tokens_neox': 1050, 'n_words': 328}