1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-30 19:47:47 +00:00

Pass args to helix shortcut

This commit is contained in:
RGBCube 2023-11-10 09:34:49 +03:00
parent 6bb9fe6d77
commit 8a38d36e0a
No known key found for this signature in database
2 changed files with 8 additions and 1 deletions

View file

@ -3,7 +3,6 @@
(homeConfiguration "nixos" {
programs.nushell = {
environmentVariables.EDITOR = "hx";
shellAliases.hx = "sh -c '_hx() { kitty @ set-spacing padding=0; hx $@; kitty @ set-spacing padding=10; }; _hx'";
};
programs.helix = enabled {

View file

@ -12,6 +12,14 @@ $env.ENV_CONVERSIONS.PATH = {
}
}
def hx [...arguments] {
kitty @ set-spacing padding=0
^hx $arguments
kitty @ set-spacing padding=10
}
if (tty) == /dev/tty1 {
Hyprland
}