fish: update prompt; don't be fancy in tty

This commit is contained in:
end-4
2026-03-24 14:46:53 +01:00
parent c854d88ee9
commit ef38057830
3 changed files with 61 additions and 33 deletions
+21 -18
View File
@@ -7,28 +7,31 @@ add_newline = false
# Cool stuff 󰜥   
# format = """
# $cmd_duration$username$hostname $directory $git_branch
# $character
# """
# $directory $fill $git_branch $cmd_duration
# $character"""
format = """
$cmd_duration 󰜥 $directory $git_branch
$character"""
$cmd_duration $directory$git_branch
$character"""
[fill]
symbol = '-'
style = 'fg:245'
# Replace the "" symbol in the prompt with "➜"
[character] # The name of the module we are configuring is "character"
success_symbol = "[  ](bold fg:blue)"
error_symbol = "[  ](bold fg:red)"
success_symbol = "[ ](bold fg:255)"
error_symbol = "[ ](bold fg:249)"
# Disable the package module, hiding it from the prompt completely
[package]
disabled = true
[git_branch]
style = "bg: cyan"
style = "bg: 252"
symbol = "󰘬"
truncation_length = 12
truncation_symbol = ""
format = "󰜥 [](bold fg:cyan)[$symbol $branch(:$remote_branch)](fg:black bg:cyan)[ ](bold fg:cyan)"
format = " 󰜥 [](bold fg:252)[$symbol $branch(:$remote_branch)](fg:235 bg:252)[ ](bold fg:252)"
[git_commit]
commit_hash_length = 4
@@ -52,7 +55,7 @@ deleted = " 🗑 "
[hostname]
ssh_only = false
format = "[•$hostname](bg:cyan bold fg:black)[](bold fg:cyan)"
format = "[•$hostname](bg:252 bold fg:235)[](bold fg:252)"
trim_at = ".companyname.com"
disabled = false
@@ -71,19 +74,19 @@ format = '🕙[\[ $time \]]($style) '
time_format = "%T"
[username]
style_user = "bold bg:cyan fg:black"
style_user = "bold bg:252 fg:235"
style_root = "red bold"
format = "[](bold fg:cyan)[$user]($style)"
format = "[](bold fg:252)[$user]($style)"
disabled = false
show_always = true
[directory]
home_symbol = "  "
home_symbol = " "
read_only = "  "
style = "bg:green fg:black"
truncation_length = 6
truncation_symbol = " ••/"
format = '[](bold fg:green)[󰉋 $path]($style)[](bold fg:green)'
style = "bg:255 fg:black"
truncation_length = 2
truncation_symbol = ".../"
format = '[](bold fg:255)[󰉋 $path]($style)[](bold fg:255)'
[directory.substitutions]
@@ -97,4 +100,4 @@ format = '[](bold fg:green)[󰉋 $path]($style)[](bold fg:green)'
[cmd_duration]
min_time = 0
format = '[](bold fg:yellow)[󰪢 $duration](bold bg:yellow fg:black)[](bold fg:yellow)'
format = '[](bold fg:252)[󰪢 $duration](bold bg:252 fg:235)[](bold fg:252)'