fork/fish-shell

git clone https://git.julia.blue/fork/fish-shell

Nahorcolor: prefer `set_color --reset` over `set_color normal`867946468

master
614 B29 linesraw
1# name: Simple Pythonista
2# author: davbo
3
4function fish_prompt
5    if not set -q VIRTUAL_ENV_DISABLE_PROMPT
6        set -g VIRTUAL_ENV_DISABLE_PROMPT true
7    end
8    set_color yellow
9    printf '%s' $USER
10    set_color --reset
11    printf ' at '
12
13    set_color magenta
14    echo -n (prompt_hostname)
15    set_color --reset
16    printf ' in '
17
18    set_color $fish_color_cwd
19    printf '%s' (prompt_pwd)
20    set_color --reset
21
22    # Line 2
23    echo
24    if test -n "$VIRTUAL_ENV"
25        printf "(%s) " (set_color blue)(path basename $VIRTUAL_ENV)(set_color --reset)
26    end
27    printf '↪ '
28    set_color --reset
29end