diff --git a/machines/enka/helix/default.nix b/machines/enka/helix/default.nix index 441d46c..381e031 100644 --- a/machines/enka/helix/default.nix +++ b/machines/enka/helix/default.nix @@ -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 { diff --git a/machines/enka/nushell/environment.nu b/machines/enka/nushell/environment.nu index 3fa6093..5160d7d 100644 --- a/machines/enka/nushell/environment.nu +++ b/machines/enka/nushell/environment.nu @@ -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 }