-
Notifications
You must be signed in to change notification settings - Fork 0
/
starship.toml
99 lines (88 loc) · 1.38 KB
/
starship.toml
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
# https://starship.rs/config/
"$schema" = 'https://starship.rs/config-schema.json'
add_newline = false
format = """
${custom.homecfg}\
${custom.isroot}\
$username\
$hostname\
${custom.in_docker}\
$shlvl\
$kubernetes\
$directory\
${custom.shell}\
$git_branch\
$git_commit\
$git_state\
$git_status\
$hg_branch\
$docker_context\
$package\
$cmake\
$dart\
$dotnet\
$elixir\
$elm\
$erlang\
$golang\
$helm\
$java\
$julia\
$nim\
$nodejs\
$ocaml\
$perl\
$php\
$purescript\
$python\
$ruby\
$rust\
$swift\
$terraform\
$zig\
$nix_shell\
$conda\
$memory_usage\
$aws\
$gcloud\
$env_var\
$crystal\
$cmd_duration\
$custom\
$line_break\
$jobs\
$battery\
$time\
$status\
$character"""
[directory]
format = "[$path]($style)[$lock_symbol]($lock_style) "
truncation_length = 0
truncate_to_repo = false
[git_branch]
format = "[$symbol$branch]($style) "
symbol = "🔸 "
[username]
show_always = true
format = '[$user]($style)@'
[hostname]
format = "[$hostname]($style):"
ssh_only = false
style = "bold blue"
[status]
disabled = false
symbol = "×"
[custom.homecfg]
command = 'echo "🏠 $HOMECFG"'
when = '[ "$HOMECFG" != "$HOME/.config/homecfg" ]'
style = "bright-black"
[custom.shell]
command = 'echo -n "[${0##*/}]"'
when = '[ "$0" = "${0%zsh}" ]'
style = "bright-black"
[custom.isroot]
command = "echo ❗"
when = "test $(id -u) -eq 0"
[custom.in_docker]
command = "echo -n '[container]'"
when = "test -f /.dockerenv"