configs  Check-in [0b3f585e66]

Overview
Comment:fish_prompt.fish: Fix space error
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 0b3f585e66a7d7acd11ecbd39bc52621a3e101a62fdab8a32571b80900b9f22a
User & Date: js 2020-06-07 10:46:56
Context
2020-06-14
20:54
zshrc: Add support for 24-bit color check-in: 062db63578 user: js tags: trunk
2020-06-07
10:46
fish_prompt.fish: Fix space error check-in: 0b3f585e66 user: js tags: trunk
2020-06-04
22:01
zshrc: Add cross() command like in fish check-in: 4a2279477c user: js tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to fish/functions/fish_prompt.fish.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
function fish_prompt --description 'Write out the prompt'
    set -l suffix
    switch "$USER"
        case root toor
            set suffix (set_color $fish_color_cwd_root)'#'
        case '*'
            set suffix '>'
    end

    set -l branch (fossil branch current 2>/dev/null)
    
    if test -z "$branch"
        set branch (git symbolic-ref HEAD 2>/dev/null)
        set branch (string replace -r "^refs/heads/" "" $branch)
    end

    set -l vcs
    if test -n "$branch"










|







1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
function fish_prompt --description 'Write out the prompt'
    set -l suffix
    switch "$USER"
        case root toor
            set suffix (set_color $fish_color_cwd_root)'#'
        case '*'
            set suffix '>'
    end

    set -l branch (fossil branch current 2>/dev/null)

    if test -z "$branch"
        set branch (git symbolic-ref HEAD 2>/dev/null)
        set branch (string replace -r "^refs/heads/" "" $branch)
    end

    set -l vcs
    if test -n "$branch"