Compare commits

..

1 Commits

Author SHA1 Message Date
62cb886b80 fixed user replacement 2025-02-13 18:01:53 -08:00

View File

@@ -23,12 +23,12 @@ nix-channel --add https://nixos.org/channels/nixos-24.11 nixpkgs
nix-channel --add https://github.com/nix-community/home-manager/archive/release-24.11.tar.gz home-manager
nix-channel --update
files=("home.nix" "cli-tools.nix")
files=("home-manager/home.nix" "home-manager/cli-tools.nix")
for file in "${files[@]}"; do
if [ -f "$file" ]; then
# Use sed to replace 'USER' with the replacement word
sed -i "s/USER/$USER/g" $file
sed -i "s/USER/$replacement_word/g" "$file"
echo "Processed: $file"
else
echo "Error: $file does not exist or is not a regular file."