treewide: sed s/--replace/--replace-warn/g

This commit is contained in:
Guanran Wang 2024-02-04 20:33:46 +08:00
parent fa208b9ac1
commit d7502e0044
Signed by: nyancat
SSH key fingerprint: SHA256:8oWGKciPALWut/6WA27oFKofX+6Wtc0gQnsefXLQx/8
2 changed files with 2 additions and 2 deletions

View file

@ -18,7 +18,7 @@
// builtins.fromTOML (builtins.readFile "${pkgs.starship}/share/starship/presets/nerd-font-symbols.toml") // builtins.fromTOML (builtins.readFile "${pkgs.starship}/share/starship/presets/nerd-font-symbols.toml")
// builtins.fromTOML (builtins.readFile (pkgs.substitute { // builtins.fromTOML (builtins.readFile (pkgs.substitute {
src = "${pkgs.starship}/share/starship/presets/tokyo-night.toml"; src = "${pkgs.starship}/share/starship/presets/tokyo-night.toml";
replacements = ["--replace" "" ""]; replacements = ["--replace-warn" "" ""];
})); }));
}; };
} }

View file

@ -40,7 +40,7 @@ in {
url = "https://raw.githubusercontent.com/nwg-piotr/nwg-shell/c29e8eb4658a2613fb221ead0b101c75f457bcaf/scripts/screenshot"; url = "https://raw.githubusercontent.com/nwg-piotr/nwg-shell/c29e8eb4658a2613fb221ead0b101c75f457bcaf/scripts/screenshot";
hash = "sha256-Z/fWloz8pLHsvPTPOeBxnbMsGDRTY3G3l/uePQ3ZxjU="; hash = "sha256-Z/fWloz8pLHsvPTPOeBxnbMsGDRTY3G3l/uePQ3ZxjU=";
}; };
replacements = ["--replace" "DIR=\${SCREENSHOT_DIR:=$HOME/Screenshots}" "DIR=$HOME/Pictures/Screenshots"]; # i dont like using an environment variable replacements = ["--replace-warn" "DIR=\${SCREENSHOT_DIR:=$HOME/Screenshots}" "DIR=$HOME/Pictures/Screenshots"]; # i dont like using an environment variable
}; };
}) })
]; ];