mirror of
https://github.com/elwrcl/copnix.git
synced 2026-10-31 14:28:02 +03:00
nu
This commit is contained in:
4 files changed
+128
-29
No files matched your search
@@ -1,12 +1,16 @@
|
||||
{ ... }:
|
||||
{
|
||||
flake.homeModules.home-nushell-commandline-copy =
|
||||
{ ... }:
|
||||
{ pkgs, lib, ... }:
|
||||
let
|
||||
inherit (lib.meta) getExe';
|
||||
wlCopy = getExe' pkgs.wl-clipboard "wl-copy";
|
||||
in
|
||||
{
|
||||
programs.nushell.extraConfig = ''
|
||||
use std/clip
|
||||
def nu-highlight-default [] {
|
||||
home.packages = [ pkgs.wl-clipboard ];
|
||||
|
||||
programs.nushell.extraConfig = ''
|
||||
def nu-highlight-default [] {
|
||||
let input = $in
|
||||
$env.config.color_config = {}
|
||||
$input | nu-highlight
|
||||
@@ -17,7 +21,7 @@
|
||||
| nu-highlight-default
|
||||
| [ "```ansi" $in "```" ]
|
||||
| str join (char nl)
|
||||
| clip copy --ansi
|
||||
| ^${wlCopy}
|
||||
}
|
||||
|
||||
$env.config.keybindings ++= [
|
||||
|
||||
Reference in new issue
Block a user