1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-27 21:49:48 +01:00

thefuck: add xonsh integration

This commit is contained in:
paki23 2024-05-30 23:36:42 +02:00
parent 2080291ee6
commit a284fe2633
No known key found for this signature in database
GPG key ID: 13160FFB4CEB03F2

View file

@ -80,5 +80,9 @@ with lib;
alias fuck = ${cfg.package}/bin/thefuck $"(history | last 1 | get command | get 0)"
'';
};
programs.xonsh.xonshrc = ''
aliases["fuck"] = lambda args, stdin=None: execx($(${cfg.package}/bin/thefuck @(__xonsh__.history[-1].cmd)))
'';
};
}