Add starship configs
• init starship as part of bash • add starship wip config • ignore standard bash prompt is starship is inited
This commit is contained in:
parent
c6e39dc06b
commit
6b5174d7f3
@ -1,5 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
if [[ -z ${STARSHIP_SESSION_KEY} ]] ; then
|
||||
return
|
||||
fi
|
||||
|
||||
# Reset
|
||||
color_off='\e[0m' # Text Reset
|
||||
|
||||
|
||||
1
starship/.config/bash/bashrc.d/starship.sh
Normal file
1
starship/.config/bash/bashrc.d/starship.sh
Normal file
@ -0,0 +1 @@
|
||||
eval "$(starship init bash)"
|
||||
51
starship/.config/starship.toml
Normal file
51
starship/.config/starship.toml
Normal file
@ -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…
Reference in New Issue
Block a user