Skip to content

Instantly share code, notes, and snippets.

@fitrh
Created March 25, 2021 05:01
Show Gist options
  • Save fitrh/ae7435843069629c90a136754dc48035 to your computer and use it in GitHub Desktop.
Save fitrh/ae7435843069629c90a136754dc48035 to your computer and use it in GitHub Desktop.
format = """
$username\
$shlvl\
$kubernetes\
${custom.dir}\
${custom.home_dir}\
$directory\
${custom.git_host}\
$git_branch\
$git_commit\
$git_state\
$git_status\
$hg_branch\
$docker_context\
$package\
$cmake\
$dart\
$dotnet\
$elixir\
$elm\
$erlang\
$golang\
$helm\
$java\
$julia\
$kotlin\
$nim\
$nodejs\
$ocaml\
$perl\
$php\
$purescript\
$python\
$ruby\
$rust\
$swift\
$terraform\
$vagrant\
$zig\
$nix_shell\
$conda\
$aws\
$gcloud\
$openstack\
$env_var\
$crystal\
$custom\
$cmd_duration\
$lua\
$line_break\
$jobs\
$status\
$character"""
scan_timeout = 10
add_newline = false
[battery]
disabled = true
[character]
success_symbol = "[](bright-red)[](bright-blue)[](bright-cyan)"
error_symbol = "[](red)"
[directory]
truncation_length = 1
format = "[ $path ]($style)[$read_only]($read_only_style) "
style = "fg:white bg:black bold"
read_only = "  "
read_only_style = "fg:black bg:red"
[git_branch]
format = ":[$symbol$branch]($style) "
[git_status]
conflicted = "[<](white)=[$count](bright-white bold)[>](white)"
ahead = "[<](white)⇡[$count](bright-white bold)[>](white)"
behind = "[<](white)⇣[$count](bright-white bold)[>](white)"
diverged = "[<](white)⇕⇡[$ahead_count](bright-white bold)⇣[$behind_count](bright-white)[>](white)"
untracked = "[<](white)?[$count](bright-white bold)[>](white)"
stashed = "[<](white)$[$count](bright-white bold)[>](white)"
modified = "[<](white)![$count](bright-white bold)[>](white)"
staged = "[<](white)+[$count](bright-white bold)[>](white)"
renamed = "[<](white)»[$count](bright-white bold)[>](white)"
deleted = "[<](white)✗[$count](bright-white bold)[>](white)"
[custom.home_dir]
command = "echo  "
when = '[ "$PWD" == "$HOME" ]'
shell = ["bash","--norc","--noprofile"]
style = "fg:bright-white bg:bright-black"
format = "[ $output ]($style)"
[custom.dir]
command = "echo  "
when = '[ "$PWD" != "$HOME" ]'
shell = ["bash","--norc","--noprofile"]
style = "fg:blue bg:bright-black"
format = "[ $output ]($style)"
[custom.git_host]
command = 'getgithost'
when = 'git rev-parse --is-inside-work-tree 2> /dev/null'
shell = ["bash","--norc","--noprofile"]
style = "bright-yellow bold"
format = "at [$output]($style)"
[hostname]
disabled = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment