Skip to content

Instantly share code, notes, and snippets.

@meetmistry0
Last active Sep 22, 2021
Embed
What would you like to do?
# ███████╗████████╗ █████╗ ██████╗ ███████╗██╗ ██╗██╗██████╗
# ██╔════╝╚══██╔══╝██╔══██╗██╔══██╗██╔════╝██║ ██║██║██╔══██╗
# ███████╗ ██║ ███████║██████╔╝███████╗███████║██║██████╔╝
# ╚════██║ ██║ ██╔══██║██╔══██╗╚════██║██╔══██║██║██╔═══╝
# ███████║ ██║ ██║ ██║██║ ██║███████║██║ ██║██║██║
# ╚══════╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═╝╚═╝
# Sets the format for the modules.
format = """
$username\
$hostname\
$shlvl\
$singularity\
$kubernetes\
$directory\
$vcsh\
$git_branch\
$git_commit\
$git_state\
$git_metrics\
$git_status\
$hg_branch\
$docker_context\
$package\
$cmake\
$cobol\
$dart\
$deno\
$dotnet\
$elixir\
$elm\
$erlang\
$golang\
$helm\
$java\
$julia\
$kotlin\
$lua\
$nim\
$nodejs\
$ocaml\
$perl\
$php\
$purescript\
$python\
$rlang\
$red\
$ruby\
$rust\
$scala\
$swift\
$terraform\
$vlang\
$vagrant\
$zig\
$nix_shell\
$conda\
$memory_usage\
$aws\
$gcloud\
$openstack\
$env_var\
$crystal\
$custom\
$cmd_duration\
$battery\
$time\
$line_break\
$jobs\
$status\
$shell\
$character"""
# Symbol for when command is wrong or process has had an error.
[character]
error_symbol = "[✗](bold red)"
# Battery symbols
[battery]
full_symbol = "🔋"
charging_symbol = "🔌"
discharging_symbol = "💀"
# Style for 0-10% battery capacity.
[[battery.display]]
threshold = 10
style = "bold red"
# Style for 10-25% battery capacity.
[[battery.display]]
threshold = 25
style = "bold yellow"
# Style for 25-100% battery capacity.
[[battery.display]]
threshold = 100
style = "bold white"
# Username style & format.
[username]
style_user = "bold white"
format = "[$user]($style) "
show_always = true
# Will truncate(shorten) the directory style if current folder is a git repo.
[directory]
truncation_length = 5
truncate_to_repo = true
truncation_symbol = "./"
# Show the time in 12H format
[time]
disabled = false
format = '[\[$time\]]($style) '
time_format = "%R %p"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment