Add starship and more adjustments

This commit is contained in:
Eric Renfro 2023-12-24 12:21:30 -05:00
parent 444fed593f
commit 9a044139bf
Signed by: psi-jack
GPG key ID: 14977F3A50D9A5BF
2 changed files with 65 additions and 0 deletions

View file

@ -1,8 +1,11 @@
set -gx KUBE_EDITOR micro
set -gx VISUAL micro
set -gx EDITOR micro
set -gx GOPATH {{ .chezmoi.homeDir }}/.go
set -gx ANSIBLE_FORCE_COLOR true
set -gx ANSIBLE_HOST_KEY_CHECKING False
set -gx PY_COLORS true
set -gx GPG_TTY (tty)
fish_add_path "{{ .chezmoi.homeDir }}/bin"
fish_add_path "{{ .chezmoi.homeDir }}/.local/bin"
@ -22,10 +25,18 @@ if type -q atuin
atuin init fish | source
end
if type -q thefuck
thefuck --alias | source
end
if type -q starship
starship init fish | source
end
if type -q zoxide
zoxide init fish | source
end
if status is-interactive
# Commands to run in interactive sessions can go here
set -g fish_escape_delay_ms 100

View file

@ -0,0 +1,54 @@
"$schema" = 'https://starship.rs/config-schema.json'
add_newline = true
format = """\
$username\
$directory\
$kubernetes\
$git_branch\
$git_commit\
$git_state\
$git_status\
$character\
"""
[character]
success_symbol = "\n[](bold green)"
error_symbol = "\n[✖](bold red)"
[cmd_duration]
min_time = 500
[username]
disabled = false
show_always = false
[directory]
disabled = false
truncation_length = 8
truncate_to_repo = true
read_only = " "
home_symbol = " "
[kubernetes]
disabled = false
symbol = "󱃾 "
format = "[\\[$symbol$context \\($namespace\\)\\]]($style) "
style = "bold bright-green"
[python]
disabled = false
format = '\[[${symbol}${pyenv_prefix}(${version})(\($virtualenv\))]($style)\]'
symbol = " "
[git_branch]
disabled = false
symbol = " "
[git_commit]
disabled = false
commit_hash_length = 8
only_detached = false
style = "grey"
tag_symbol = " "