Skip to content

Commit

Permalink
[𝚫] (shell): zsh -> fish
Browse files Browse the repository at this point in the history
  • Loading branch information
Icy-Thought committed Oct 2, 2023
1 parent 4afbe77 commit 33965bf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 2 additions & 1 deletion modules/shell/fish.nix
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ in {
fish-theme = {
target = "fish/conf.d/${active}.fish";
text = let
inherit (config.modules.themes.colors) fishColor;
inherit (lib.strings) removePrefix;
fishColor = hexColor: removePrefix "#" hexColor;
in ''
# --> General
set -l foreground ${fishColor types.fg}
Expand Down
4 changes: 1 addition & 3 deletions modules/themes/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
inherit (lib.attrsets) attrValues mapAttrsToList;
inherit (lib.meta) getExe;
inherit (lib.modules) mkIf mkMerge;
inherit (lib.strings) concatStringsSep optionalString removePrefix;
inherit (lib.strings) concatStringsSep optionalString;

cfg = config.modules.themes;
envProto = config.modules.desktop.envProto;
Expand Down Expand Up @@ -121,8 +121,6 @@ in {
};
};

fishColor = hexColor: removePrefix "#" hexColor;

rofi = {
bg = {
main = mkOpt str "#FFFFFF";
Expand Down

0 comments on commit 33965bf

Please sign in to comment.