added ssh-trick with .profile; added starship config

This commit is contained in:
Nicole Dresselhaus 2023-08-25 18:13:44 +02:00
parent d577f2c462
commit 1bf0d1248a
4 changed files with 175 additions and 0 deletions

171
.config/starship.toml Normal file
View File

@ -0,0 +1,171 @@
format = """
[](#cb4b16)\
$os\
$sudo\
$username\
[](bg:#dc322f fg:#cb4b16)\
$hostname\
$kubernetes\
$helm\
[](bg:#d33682 fg:#dc322f)\
$directory\
[](fg:#d33682 bg:#6c71c4)\
$git_branch\
$git_commit\
$git_state\
$git_metrics\
$git_status\
$docker_context\
[](fg:#6c71c4 bg:#268bd2)\
$c\
$elixir\
$elm\
$golang\
$gradle\
$haskell\
$java\
$julia\
$nodejs\
$nim\
$rust\
$scala\
$python\
$devenv\
$nix_shell\
[](fg:#268bd2 bg:#2aa198)\
$time\
[](fg:#2aa198)
"""
add_newline = true
# You can also replace your username with a neat symbol like  or disable this
# and use the os module below
[username]
show_always = true
style_user = "fg:#073642 bg:#cb4b16"
style_root = "fg:#073642 bg:#cb4b16"
format = '[$user ]($style)'
disabled = false
# An alternative to the username module which displays a symbol that
# represents the current operating system
[os]
style = "fg:#073642 bg:#cb4b16"
disabled = true # Disabled by default
[hostname]
ssh_only = false
style = "fg:#073642 bg:#dc322f"
format = "[ $hostname ]($style)"
[directory]
style = "fg:#073642 bg:#d33682"
format = "[ $path ]($style)"
truncation_length = 3
truncation_symbol = "…/"
# Here is how you can shorten some long paths by text replacement
# similar to mapped_locations in Oh My Posh:
[directory.substitutions]
"Documents" = " "
"Downloads" = " "
"Music" = " "
"Pictures" = " "
# Keep in mind that the order matters. For example:
# "Important Documents" = "  "
# will not be replaced, because "Documents" was already substituted before.
# So either put "Important Documents" before "Documents" or use the substituted version:
# "Important  " = "  "
[c]
symbol = " "
style = "fg:#073642 bg:#268bd2"
format = '[ $symbol ($version) ]($style)'
[elixir]
symbol = " "
style = "fg:#073642 bg:#268bd2"
format = '[ $symbol ($version) ]($style)'
[elm]
symbol = " "
style = "fg:#073642 bg:#268bd2"
format = '[ $symbol ($version) ]($style)'
[git_branch]
symbol = ""
style = "fg:#073642 bg:#6c71c4"
format = '[ $symbol $branch ]($style)'
[git_status]
style = "fg:#073642 bg:#6c71c4"
format = '[$all_status$ahead_behind ]($style)'
[golang]
symbol = " "
style = "fg:#073642 bg:#268bd2"
format = '[ $symbol ($version) ]($style)'
[gradle]
symbol = " "
style = "fg:#073642 bg:#268bd2"
format = '[ $symbol ($version) ]($style)'
[haskell]
symbol = " "
style = "fg:#073642 bg:#268bd2"
format = '[ $symbol ($version) ]($style)'
[java]
symbol = "☕ "
style = "fg:#073642 bg:#268bd2"
format = '[ $symbol ($version) ]($style)'
[julia]
symbol = " "
style = "fg:#073642 bg:#268bd2"
format = '[ $symbol ($version) ]($style)'
[nodejs]
symbol = ""
style = "fg:#073642 bg:#268bd2"
format = '[ $symbol ($version) ]($style)'
[nim]
symbol = " "
style = "fg:#073642 bg:#268bd2"
format = '[ $symbol ($version) ]($style)'
[rust]
symbol = ""
style = "fg:#073642 bg:#268bd2"
format = '[ $symbol ($version) ]($style)'
[scala]
symbol = " "
style = "fg:#073642 bg:#268bd2"
format = '[ $symbol ($version) ]($style)'
[python]
symbol = ""
style = "fg:#073642 bg:#268bd2"
format = '[ $symbol( $pyenv_prefix)( $version( \($virtualenv\))) ]($style)'
[time]
disabled = false
time_format = "%R" # Hour:Minute Format
style = "fg:#073642 bg:#2aa198"
format = '[  $time ]($style)'
[sudo]
style = "fg:#073642 bg:#cb4b16"
format = '[$symbol]($style)'
symbol = '🧙'
disabled = false
[nix_shell]
disabled = false
style = "fg:#073642 bg:#268bd2"
format = '[ $symbol via $name ]($style)'

4
.profile Normal file
View File

@ -0,0 +1,4 @@
export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket"
source <(/usr/bin/ssh-agent -a "$SSH_AUTH_SOCK")

Binary file not shown.

Binary file not shown.