theme: extract last_theme function to own file
2 files changed, 3 insertions(+), 9 deletions(-)
A user/settings/fish/functions/last_theme.fish
@@ -0,0 +1,3 @@ +function last_theme + theme.sh (theme.sh -l | tail -n2 | head -n1) +end
M user/settings/theme.nix → user/settings/theme.nix
@@ -3,9 +3,6 @@ pkgs, inputs, ... }: -let - -in { nixpkgs.overlays = [ (final: prev: {@@ -54,12 +51,6 @@ if test -e $XDG_CONFIG_HOME/.theme_history theme.sh (theme.sh -l | tail -n1) else theme.sh flexoki-light - end - - # Optional - # Bind C-o to the last theme. - function last_theme - theme.sh (theme.sh -l | tail -n2 | head -n1) end bind \co last_theme