Add starship configs

• init starship as part of bash
 • add starship wip config
 • ignore standard bash prompt is starship is inited
main
Buddy Sandidge 4 years ago
parent c6e39dc06b
commit 6b5174d7f3

@ -1,5 +1,9 @@
#!/usr/bin/env bash #!/usr/bin/env bash
if [[ -z ${STARSHIP_SESSION_KEY} ]] ; then
return
fi
# Reset # Reset
color_off='\e[0m' # Text Reset color_off='\e[0m' # Text Reset

@ -0,0 +1 @@
eval "$(starship init bash)"

@ -0,0 +1,51 @@
format = """\
$username\
$hostname\
$directory\
$git_branch\
$git_commit\
$git_state\
$git_status\
$time\
$cmd_duration\
$line_break\
$character\
"""
[username]
disabled = false
show_always = true
style = "green"
style_user = "green"
[hostname]
disable = false
ssh_only = false
style = "purple"
# format = "[$hostname]($style)"
[git_branch]
style = "black bold"
symbol = ""
# format = "[$symbol$branch]($style)"
[directory]
truncation_length = 0
use_logical_path = true
truncate_to_repo = false
style = "blue"
[time]
disabled = false
style = "purple"
time_format = "%T"
format = "[$time]($style)"
[cmd_duration]
# $duration The command duration (e.g. "15s")
# $style The default style of the module (e.g. "bold yellow")
format = "took [$duration]($style) "
[character]
success_symbol = "λ"
style_success = ""
Loading…
Cancel
Save