all repos — nixfiles @ ac5940f6364a92606b2ea13647fa6ddaee1f72a5

System and user configuration, managed by nix and home-manager

fish: switch from tide to hydro (forked)

Alin
commit

ac5940f6364a92606b2ea13647fa6ddaee1f72a5

parent

26d9a238751a7d70006cfd25fac24e55eebd3808

4 files changed, 10 insertions(+), 27 deletions(-)

changed files
M system/settings/programs/shell.nix → system/settings/programs/shell.nix
@@ -20,7 +20,7 @@ ping6 = "ping -6";
}) ]; promptInit = '' - if ! functions --query tide + if ! functions --query fish_prompt fish_config prompt choose astronaut end '';
M user/settings/fish.nix → user/settings/fish.nix
@@ -32,7 +32,7 @@ sponge
] ++ [ pkgs.personal.fishPlugins.ghq - pkgs.personal.fishPlugins.tide + pkgs.personal.fishPlugins.hydro ] ); shellAliases = {
@@ -65,27 +65,6 @@ enable = true;
nix-output-monitor.enable = true; enableFishIntegration = true; }; - - programs.fish.shellInit = '' - set fish_function_path $fish_function_path[1] ${config.xdg.configHome}/fish/functions/tide $fish_function_path[2..-1] - ''; - home.activation.tide-configure = '' - run ${lib.getExe config.programs.fish.package} -c ' - tide configure \ - --auto \ - --style=Lean \ - --prompt_colors="16 colors" \ - --show_time="24-hour format" \ - --lean_prompt_height="Two lines" \ - --prompt_connection=Disconnected \ - --prompt_spacing=Compact \ - --icons="Few icons" - set --universal tide_left_prompt_items shlvl context pwd vcs newline character - - set --local idx (contains --index context $tide_right_prompt_items) - and set --universal --erase tide_right_prompt_items[$idx] - ' - ''; home.activation.sponge-configure = '' run ${lib.getExe config.programs.fish.package} -c '
A user/settings/fish/conf.d/hydro.fish
@@ -0,0 +1,8 @@
+set --global hydro_multiline true +set --global hydro_color_pwd 00AFFF +set --global hydro_color_git 5FD700 +set --global hydro_color_start FF00FF +set --global hydro_color_error D70000 +set --global hydro_color_prompt 5FAF00 +set --global hydro_color_duration 87875F +set --global fish_transient_prompt 1
D user/settings/fish/functions/tide/_tide_item_nix_shell.fish
@@ -1,4 +0,0 @@
-function _tide_item_nix_shell - set -q IN_NIX_SHELL && _tide_print_item nix_shell $tide_nix_shell_icon' ' \ - (string replace impure '' $IN_NIX_SHELL) -end