Compare commits

..

2 Commits

Author SHA1 Message Date
Sven Vogel 91536809c2 updated starship.toml 2023-12-14 14:48:14 +01:00
Sven Vogel c6d0de14c0 updated fish plugins 2023-12-14 14:48:04 +01:00
3 changed files with 212 additions and 90 deletions

View File

@ -154,13 +154,14 @@ in
environment.systemPackages = (with pkgs; [ environment.systemPackages = (with pkgs; [
(python3.withPackages(python-packages)) (python3.withPackages(python-packages))
fishPlugins.done fishPlugins.done # notifications for background process finished
fishPlugins.fzf-fish fishPlugins.fzf-fish
fishPlugins.forgit fishPlugins.forgit
fishPlugins.hydro
fzf fzf
fishPlugins.grc fishPlugins.grc
grc grc
fishPlugins.tide # asynchronous prompt for fish shell
fishPlugins.autopair
distrobox distrobox

View File

@ -1,112 +1,213 @@
format = """ format = """
[ \ [](#9A348E)\
$username\ $os\
$hostname\ [](bg:#DA627D fg:#9A348E)\
$localip\
$shlvl\
$singularity\
$kubernetes\
$directory\ $directory\
$vcsh\ [](fg:#DA627D bg:#FCA17D)\
$fossil_branch\
$git_branch\ $git_branch\
$git_commit\
$git_state\
$git_metrics\
$git_status\ $git_status\
$hg_branch\ [](fg:#FCA17D bg:#86BBD8)\
$pijul_channel\
$docker_context\
$package\
$c\ $c\
$cmake\
$cobol\
$daml\
$dart\
$deno\
$dotnet\
$elixir\ $elixir\
$elm\ $elm\
$erlang\
$fennel\
$golang\ $golang\
$guix_shell\ $gradle\
$haskell\ $haskell\
$haxe\
$helm\
$java\ $java\
$julia\ $julia\
$kotlin\
$gradle\
$lua\
$nim\
$nodejs\ $nodejs\
$ocaml\ $nim\
$opa\
$perl\
$php\
$pulumi\
$purescript\
$python\
$raku\
$rlang\
$red\
$ruby\
$rust\ $rust\
$scala\ $scala\
$solidity\ [](fg:#86BBD8 bg:#06969A)\
$swift\ $docker_context\
$terraform\
$vlang\
$vagrant\
$zig\
$buf\
$nix_shell\ $nix_shell\
$conda\ $guix_shell\
$meson\
$spack\
$memory_usage\
$aws\
$gcloud\
$openstack\
$azure\
$env_var\
$crystal\
$custom\
$sudo\
$cmd_duration\
](bold teal)
[](bold teal) \
$jobs\
$battery\
$time\
$status\
$os\
$container\ $container\
$character""" [](fg:#06969A bg:#33658A)\
[ ](fg:#33658A)\
"""
[git_branch] right_format = """
symbol = ' ' [](fg:#1C668D)\
format = 'on [$symbol$branch(:$remote_branch)]($style) ' $status\
[](fg:#76BCD9 bg:#1C668D)\
$time\
[](fg:#76BCD9)
"""
# You can also replace your username with a neat symbol like  or disable this
# and use the os module below
[username] [username]
show_always = true show_always = true
style_user = "bold blue" style_user = "bg:#9A348E"
style_root = "bold red" style_root = "bg:#9A348E"
format = '[$user]($style) in ' format = '[$user ]($style)'
disabled = false disabled = true
# An alternative to the username module which displays a symbol that
# represents the current operating system
[os]
style = "bg:#9A348E"
disabled = false # Disabled by default
[os.symbols]
Alpaquita = "🔔 "
Alpine = " "
Amazon = " "
Android = " "
Arch = "󰣇 "
Artix = " "
CentOS = " "
Debian = " "
DragonFly = "🐉 "
Emscripten = "🔗 "
EndeavourOS = " "
Fedora = " "
FreeBSD = " "
Garuda = "🦅 "
Gentoo = " "
HardenedBSD = "🛡️ "
Illumos = "🐦 "
Linux = " "
Mabox = "📦 "
Macos = " "
Manjaro = " "
Mariner = "🌊 "
MidnightBSD = "🌘 "
Mint = "󰣭 "
NetBSD = "🚩 "
NixOS = " "
OpenBSD = "🐡 "
OpenCloudOS = "☁️ "
openEuler = "🦉 "
openSUSE = " "
OracleLinux = "🦴 "
Pop = " "
Raspbian = " "
Redhat = "󱄛 "
RedHatEnterprise = "󱄛 "
Redox = "🧪 "
Solus = "⛵ "
SUSE = " "
Ubuntu = " "
Unknown = " "
Windows = " "
[directory] [directory]
style = "white" style = "bg:#DA627D"
format = "[$path]($style)[$read_only]($read_only_style) " format = "[ $path ]($style)"
truncation_length = 3 truncation_length = 3
truncation_symbol = "…/" truncation_symbol = "…/"
# Here is how you can shorten some long paths by text replacement
# similar to mapped_locations in Oh My Posh:
[directory.substitutions] [directory.substitutions]
"Documents" = "󰈙 " "Documents" = "󰈙 "
"Downloads" = " " "Downloads" = " "
"Music" = " " "Music" = " "
"Pictures" = " " "Pictures" = " "
"Video" = " " "Videos" = " "
"Desktop" = " "
[c]
symbol = " "
style = "bg:#86BBD8"
format = '[ $symbol ($version) ]($style)'
[elixir]
symbol = " "
style = "bg:#86BBD8"
format = '[ $symbol ($version) ]($style)'
[elm]
symbol = " "
style = "bg:#86BBD8"
format = '[ $symbol ($version) ]($style)'
[git_branch]
symbol = " "
style = "bg:#FCA17D"
format = '[ $symbol $branch ]($style)'
truncation_length = 4
truncation_symbol = '…'
[git_status]
style = "bg:#FCA17D"
format = '[$all_status$ahead_behind ]($style)'
[golang]
symbol = " "
style = "bg:#86BBD8"
format = '[ $symbol ($version) ]($style)'
[gradle]
style = "bg:#86BBD8"
format = '[ $symbol ($version) ]($style)'
[haskell]
symbol = " "
style = "bg:#86BBD8"
format = '[ $symbol ($version) ]($style)'
[java]
symbol = " "
style = "bg:#86BBD8"
format = '[ $symbol ($version) ]($style)'
[julia]
symbol = " "
style = "bg:#86BBD8"
format = '[ $symbol ($version) ]($style)'
[nodejs]
symbol = ""
style = "bg:#86BBD8"
format = '[ $symbol ($version) ]($style)'
[nim]
symbol = "󰆥 "
style = "bg:#86BBD8"
format = '[ $symbol ($version) ]($style)'
[rust]
symbol = ""
style = "bg:#86BBD8"
format = '[ $symbol ($version) ]($style)'
[scala]
symbol = " "
style = "bg:#86BBD8"
format = '[ $symbol ($version) ]($style)'
[time]
disabled = false
time_format = "%R" # Hour:Minute Format
style = "fg:#ffffff bg:#76BCD9"
format = '[  $time ]($style)'
[docker_context]
symbol = '󰡨 '
style = 'bg:#06969A'
format = '[ $symbol$context]($style) '
disabled = false
[nix_shell]
symbol = '󱄅 '
style = 'bg:#06969A'
format = '[ $symbol$state \($name\)]($style) '
disabled = false
[guix_shell]
style = 'bg:#06969A'
symbol = ' '
format = '[ $symbol]($style) '
disabled = false
[status]
recognize_signal_code = false
map_symbol = false
style = 'bg:#1C668D'
format = '[ $int ]($style)'
disabled = false

View File

@ -68,7 +68,6 @@
efibootmgr efibootmgr
# less like program for listing a file with colors # less like program for listing a file with colors
# used as a replacement pager for colored man pages # used as a replacement pager for colored man pages
most
lazygit lazygit
lazydocker lazydocker
pandoc pandoc
@ -127,7 +126,6 @@
home = { home = {
stateVersion = "23.11"; stateVersion = "23.11";
sessionVariables = { sessionVariables = {
PAGER = "most"; # use most as pager program for man pages (colors!)
EDITOR = "nvim"; # overwrite editor EDITOR = "nvim"; # overwrite editor
}; };
}; };
@ -147,17 +145,12 @@
ms-python.vscode-pylance ms-python.vscode-pylance
]; ];
}; };
programs.starship = {
enable = true;
enableFishIntegration = true;
};
programs.kitty = { programs.kitty = {
enable = true; enable = true;
}; };
# ------------------------------------------------------ # ------------------------------------------------------
# Config files # Config files
xdg.configFile."starship.toml".source = config/starship.toml; # starship prompt configuration
xdg.configFile."VSCodium/User/settings.json".source = config/settings.json; # VSCodium settings xdg.configFile."VSCodium/User/settings.json".source = config/settings.json; # VSCodium settings
xdg.configFile."aacs/KEYDB.cfg".source = config/keydb.cfg; # key database for blueray decryption xdg.configFile."aacs/KEYDB.cfg".source = config/keydb.cfg; # key database for blueray decryption
# kitty configuration # kitty configuration
@ -171,6 +164,33 @@
interactiveShellInit = '' interactiveShellInit = ''
set fish_greeting # Disable greeting set fish_greeting # Disable greeting
''; '';
plugins = [
{
name = "fzf-fish";
src = pkgs.fishPlugins.fzf-fish.src;
}
{
name = "forgit";
src = pkgs.fishPlugins.forgit.src;
}
{
name = "grc";
src = pkgs.fishPlugins.grc.src;
}
{
name = "done";
src = pkgs.fishPlugins.done.src;
}
{
name = "autopair";
src = pkgs.fishPlugins.autopair.src;
}
];
};
programs.starship = {
enable = true;
enableFishIntegration = true;
}; };
programs.eza = { programs.eza = {