dotfiles

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

fish_prompt.fish (913B)


      1 function fish_prompt
      2     # ── Farben ────────────────────────────────
      3     set -l color_cwd (set_color cyan)
      4     set -l color_reset (set_color normal)
      5 
      6     # ── aktuelles Verzeichnis ─────────────────
      7     printf '%s%s%s' $color_cwd (prompt_pwd) $color_reset
      8 
      9     # ── Git-Segment ───────────────────────────
     10     set -l git_seg (__fish_git_prompt \
     11         --always-show           \
     12         --branch-name           \
     13         --dirty-char '✗'        \
     14         --staged-char '●'       \
     15         --untracked-char '…'    \
     16         --up-char '⇡'           \
     17         --down-char '⇣')
     18 
     19     if test -n "$git_seg"
     20         printf ' (%s)' "$git_seg"
     21     end
     22 
     23     # ── Zeilenumbruch + Prompt-Symbol ─────────
     24     printf '\n> '
     25 end