-
Notifications
You must be signed in to change notification settings - Fork 131
/
pure.fish
59 lines (48 loc) · 2.5 KB
/
pure.fish
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
set --universal pure_version 1.13.0
# Whether or not is a fresh session
set --global _pure_fresh_session true
# Deactivate the default virtualenv prompt so that we can add our own
set --global --export VIRTUAL_ENV_DISABLE_PROMPT 1
# Symbols
_pure_set_default pure_symbol_prompt "❯"
# Git
_pure_set_default pure_symbol_git_arrow_down "⇣"
_pure_set_default pure_symbol_git_arrow_up "⇡"
_pure_set_default pure_symbol_git_dirty "*"
# Title
_pure_set_default pure_symbol_horizontal_bar "—"
# Base colors
_pure_set_default pure_color_blue (set_color blue)
_pure_set_default pure_color_cyan (set_color cyan)
_pure_set_default pure_color_gray (set_color brblack)
_pure_set_default pure_color_magenta (set_color magenta)
_pure_set_default pure_color_normal (set_color normal)
_pure_set_default pure_color_red (set_color red)
_pure_set_default pure_color_white (set_color white)
_pure_set_default pure_color_yellow (set_color yellow)
# Colors used on symbols, attributes and events
_pure_set_default pure_color_command_duration $pure_color_yellow
_pure_set_default pure_color_current_folder $pure_color_blue
_pure_set_default pure_color_git_arrows $pure_color_cyan
_pure_set_default pure_color_git_branch $pure_color_gray
_pure_set_default pure_color_git_dirty $pure_color_gray
_pure_set_default pure_color_ssh_host $pure_color_gray
_pure_set_default pure_color_ssh_separator $pure_color_gray
_pure_set_default pure_color_ssh_user_normal $pure_color_gray
_pure_set_default pure_color_ssh_user_root $pure_color_white
_pure_set_default pure_color_symbol_error $pure_color_red
_pure_set_default pure_color_symbol_success $pure_color_magenta
_pure_set_default pure_color_virtualenv $pure_color_gray
# Print current working directory at the beginning of prompt
# true (default): current directory, git, user@hostname (ssh-only), command duration
# false: user@hostname (ssh-only), current directory, git, command duration
_pure_set_default pure_prompt_begin_with_current_directory true
# Show exit code of last command as a separate prompt character (cf. https://github.com/sindresorhus/pure/wiki#show-exit-code-of-last-command-as-a-separate-prompt-character)
# false - single prompt character, default
# true - separate prompt character
_pure_set_default pure_separate_prompt_on_error false
# Max execution time of a process before its run time is shown when it exits
_pure_set_default pure_command_max_exec_time 5
# Right Prompt variables
_pure_set_default pure_right_prompt ""
_pure_set_default pure_color_right_prompt $pure_color_normal