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:
parent
2080291ee6
commit
a284fe2633
1 changed files with 4 additions and 0 deletions
|
@ -80,5 +80,9 @@ with lib;
|
||||||
alias fuck = ${cfg.package}/bin/thefuck $"(history | last 1 | get command | get 0)"
|
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)))
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue