1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-30 11:37:44 +00:00

Make git diff use bat and use "" more consistently with ''

This commit is contained in:
RGBCube 2023-11-08 09:19:18 +03:00
parent ca2ce04dd1
commit a51d20153b
No known key found for this signature in database
3 changed files with 14 additions and 10 deletions

View file

@ -6,8 +6,12 @@
(homeConfiguration "nixos" { (homeConfiguration "nixos" {
programs.nushell.environmentVariables = { programs.nushell.environmentVariables = {
MANPAGER = "\"sh -c 'col --spaces --no-backspaces | bat --plain --language man'\""; MANPAGER = ''"sh -c 'col --spaces --no-backspaces | bat --plain --language man'"'';
PAGER = "\"bat --plain\""; PAGER = "'bat --plain'";
};
programs.nushell.shellAliases = {
"'git diff'" = "sh -c 'git diff --name-only --relative --diff-filter=d | xargs bat --diff'";
}; };
programs.bat = enabled { programs.bat = enabled {

View file

@ -17,13 +17,13 @@
}; };
settings.editor.auto-pairs = { settings.editor.auto-pairs = {
"(" = ")"; "(" = ")";
"{" = "}"; "{" = "}";
"[" = "]"; "[" = "]";
"\"" = "\""; '"' = '"';
"'" = "'"; "'" = "'";
"<" = ">"; "<" = ">";
"`" = "`"; "`" = "`";
}; };
settings.editor.statusline.mode = { settings.editor.statusline.mode = {

View file

@ -152,7 +152,7 @@ $env.config = {
$choice $choice
} }
} }
} else if ($completions | where value =~ '^.*ERR$' | is-empty) { } else if ($completions | where value =~ "^.*ERR$" | is-empty) {
$completions $completions
} else { } else {
null null