Thesola10 / zsh-comma-assistant

Supercharge your zsh with the true power of Nix!
4 stars 0 forks source link

Add `zle` widget to accept a line with `comma` in install mode #4

Open Thesola10 opened 2 years ago

Thesola10 commented 2 years ago

comma supports an option, -i, which essentially installs the missing command permanently to the local Nix profile. One cool addition for this plugin would be a zle widget (so a keybinding or Vim-mode command) which would accept a line like a normal shell, but all instances of missing commands would use comma's install mode, thus installing all required commands more permanently.

Thesola10 commented 2 years ago

As it turns out, comma's install mode doesn't run the command after installing it. Would need to make a workaround using nix-index directly (and essentially circumvent comma as a whole, since that's essentially what the command boils down to)

Thesola10 commented 2 years ago

Another option would be to complete #5 and feed the output path to nix-env.