new starship prompt; new fish plugins

This commit is contained in:
William 2024-09-21 10:30:55 -03:00
parent ab077f659c
commit 4eddaea742

View file

@ -60,22 +60,27 @@
enableFishIntegration = true; enableFishIntegration = true;
settings = { settings = {
add_newline = false; add_newline = false;
format = "$git_branch$git_status$nix_shell[ ](bold green)"; format = "$character[ ](green)";
git_branch.symbol = " ";
nix_shell = {
format = "via [$symbol $state]($style) ";
heuristic = true;
symbol = "󱄅";
};
right_format = "$cmd_duration$character";
cmd_duration = {
format = "[ $duration ]($style)";
style = "yellow";
min_time = 10;
};
character = { character = {
error_symbol = "[](bold red)"; error_symbol = "[](red)";
success_symbol = "[󱐋](bold green)"; success_symbol = "[󱐋](green)";
};
right_format = "$cmd_duration$git_branch$git_status$nix_shell";
cmd_duration = {
format = "[󰄉 $duration ]($style)";
style = "yellow";
min_time = 500;
};
git_branch = {
symbol = " ";
style = "purple";
};
git_status.style = "red";
nix_shell = {
format = "via [$symbol$state]($style)";
heuristic = true;
style = "blue";
symbol = "󱄅 ";
}; };
}; };
}; };
@ -108,9 +113,6 @@
fish_greeting = ""; fish_greeting = "";
tsh = "ssh -o RequestTTY=yes $argv tmux -u -CC new -A -s tmux-main"; tsh = "ssh -o RequestTTY=yes $argv tmux -u -CC new -A -s tmux-main";
}; };
shellInit = ''
set -g -x FONTCONFIG_FILE ${pkgs.fontconfig.out}/etc/fonts/fonts.conf
'';
plugins = [ plugins = [
{ {
name = "bang-bang"; name = "bang-bang";
@ -122,12 +124,21 @@
}; };
} }
{ {
name = "fzf.fish"; name = "z";
src = pkgs.fetchFromGitHub { src = pkgs.fetchFromGitHub {
owner = "PatrickF1"; owner = "jethrokuan";
repo = "fzf.fish"; repo = "z";
rev = "v9.2"; rev = "85f863f20f24faf675827fb00f3a4e15c7838d76";
sha256 = "sha256-XmRGe39O3xXmTvfawwT2mCwLIyXOlQm7f40mH5tzz+s="; sha256 = "sha256-+FUBM7CodtZrYKqU542fQD+ZDGrd2438trKM0tIESs0=";
};
}
{
name = "sponge";
src = pkgs.fetchFromGitHub {
owner = "meaningful-ooo";
repo = "sponge";
rev = "384299545104d5256648cee9d8b117aaa9a6d7be";
sha256 = "sha256-MdcZUDRtNJdiyo2l9o5ma7nAX84xEJbGFhAVhK+Zm1w=";
}; };
} }
]; ];