keyboard mod changes, cleanup
This commit is contained in:
parent
ab1ef736a8
commit
b448e6a6a2
8 changed files with 57 additions and 51 deletions
|
@ -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 ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue