keyboard mod changes, cleanup

This commit is contained in:
Matt Nish-Lapidus 2025-07-06 12:58:31 -04:00
parent ab1ef736a8
commit b448e6a6a2
8 changed files with 57 additions and 51 deletions

View file

@ -8,6 +8,7 @@
programs.nushell = {
enable = true;
shellAliases = {
"nuls" = "ls";
"ls" = "ls -m";
"ll" = "ls -m";
"la" = "ls -am";
@ -16,6 +17,7 @@
"y" = "job spawn { wezterm --config-file ~/.config/wezterm/launcher.lua start --always-new-process --cwd (pwd) yazi }";
};
configFile.source = ./config.nu;
envFile.source = ./env.nu;
loginFile.text = ''
${pkgs.figlet}/bin/figlet -f ($env.HOME)/.local/share/flf/wavy.flf (hostname)
'';
@ -47,27 +49,6 @@
};
};
};
extraEnv = ''
let fish_completer = {|spans|
let completions = fish --command $'complete "--do-complete=($spans | str join " ")"'
| from tsv --flexible --noheaders --no-infer
| rename value description
let has_paths = ($completions | any {|row| $row.value =~ '/' or $row.value =~ '\\.\\w+$' or $row.value =~ ' '})
if $has_paths {
$completions | update value {|row|
if $row.value =~ ' ' {
$"'($row.value)'" # Wrap in single quotes
} else {
$row.value
}
}
} else {
$completions
}
}
'';
plugins = [ pkgs.nushellPlugins.skim ];
};
}