aboutsummaryrefslogtreecommitdiff
path: root/mirenn/home/files/dotfiles/.config/fish/functions/fish_prompt.fish
blob: e0df61edfb631a7a4d3476c365f576f901579018 (plain) (blame)
1
2
3
4
5
6
7
function fish_prompt
  printf (if fish_is_root_user
    echo '%s%s%s # '
  else
    echo '%s%s%s $ '
  end) (set_color $fish_color_cwd) (prompt_pwd --full-length-dirs 5) (set_color normal)
end