function fish_prompt
  # Start ohmyfish-batman theme default prompt
  test $status -ne 0;
    and set --local colors 600 900 c00
    or set --local colors 333 666 aaa

  set --local pwd (prompt_pwd)
  set --local base (basename "$pwd")

  function fst; set_color --bold fa0; end
  function snd; set_color --bold 36f; end
  function trd; set_color --bold f06; end
  function dim; set_color 666; end
  function off; set_color normal; end

  set --local expr "s|~|"(fst)"^^"(off)"|g; \
                   s|/|"(snd)"/"(off)"|g;  \
                   s|"$base"|"(fst)$base(off)" |g"

  echo -n (echo "$pwd" | sed --expression $expr)(off)

  for color in $colors
    echo -n (set_color $color)">"
  end

  echo -n " "
  # End ohmyfish-batman theme default prompt

  if set --query VIRTUAL_ENV
    echo -n -s (set_color --background blue white) "(" (basename "$VIRTUAL_ENV") ")" (set_color normal) " "
  end

  # could or may also need to check SSH_TTY or SSH_CONNECTION
  if set --query SSH_CLIENT
    echo -n -s (set_color --background red white) "(SSH: " (hostname) ")" (set_color normal) " "
  end

end

function fish_prompt
  # Start ohmyfish-batman theme default prompt
  test $status -ne 0;
    and set --local colors 600 900 c00
    or set --local colors 333 666 aaa

  set --local pwd (prompt_pwd)
  set --local base (basename "$pwd")

  function fst; set_color --bold fa0; end
  function snd; set_color --bold 36f; end
  function trd; set_color --bold f06; end
  function dim; set_color 666; end
  function off; set_color normal; end

  set --local expr "s|~|"(fst)"^^"(off)"|g; \
                   s|/|"(snd)"/"(off)"|g;  \
                   s|"$base"|"(fst)$base(off)" |g"

  echo -n (echo "$pwd" | sed --expression $expr)(off)

  for color in $colors
    echo -n (set_color $color)">"
  end

  echo -n " "
  # End ohmyfish-batman theme default prompt

  if set --query VIRTUAL_ENV
    echo -n -s (set_color --background blue white) "(" (basename "$VIRTUAL_ENV") ")" (set_color normal) " "
  end

  # could or may also need to check SSH_TTY or SSH_CONNECTION
  if set --query SSH_CLIENT
    echo -n -s (set_color --background red white) "(SSH: " (hostname) ")" (set_color normal) " "
  end

  if test ! check_kernel
    echo -n -s (set_color --background red blue) "RESTART FOR NEW KERNEL!" (set_color normal) " "
  end
end

Add out-of-date kernel warning to prompt
Add out-of-date kernel warning to prompt

ammgws/dotfiles,ammgws/dotfiles,ammgws/dotfiles