all repos — nixfiles @ 22ed806a6ec0eb2fcbadba733f349fecc9b1ccea

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

theme: extract last_theme function to own file

Alan Pearce
commit

22ed806a6ec0eb2fcbadba733f349fecc9b1ccea

parent

d81201657e6576d72fb57cd8047a9e37176ffc17

2 files changed, 3 insertions(+), 9 deletions(-)

changed files
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