# Copyright 2017 Renato Utsch 
#
# This project is released under the Apache 2 license.
# Licensed under the Apache License, Version 2.0 (the "License"); 
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.


set __fish_git_prompt_color_branch yellow
set __fish_git_prompt_showdirtystate 'yes'
set __fish_git_prompt_showuntrackedfiles 'yes'

set __fish_git_prompt_color_dirtystate red
set __fish_git_prompt_color_stagedstate green
set __fish_git_prompt_color_invalidstate red
set __fish_git_prompt_color_untrackedfiles red
set __fish_git_prompt_char_dirtystate '⚡'
set __fish_git_prompt_char_stagedstate '→'
set __fish_git_prompt_char_invalidstate '✖'
set __fish_git_prompt_char_untrackedfiles '…'


function fish_prompt
  set_color yellow
  printf '%s' (whoami)

  set_color $fish_color_cwd
  printf ' %s' (prompt_pwd)

  set_color normal
  printf '%s' (__fish_git_prompt)

  # Line 2
  echo
  printf '↪ '
  set_color normal
end

# Copyright 2017 Renato Utsch
#
# This project is released under the Apache 2 license.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

function fish_prompt
  set_color yellow
  printf '%s' (whoami)

  set_color $fish_color_cwd
  printf ' %s' (prompt_pwd)

  # Line 2
  echo
  printf '↪ '
  set_color normal
end

Remove git branch indicator from the fish prompt: it takes too long to return and is making the prompt slow.
Remove git branch indicator from the fish prompt: it takes too long to
return and is making the prompt slow.

RenatoUtsch/dotfiles