diff --git a/.gitignore b/.gitignore
index b1068495b4c6331373495a0fe922331423f12776..81aebd5214486416bf0a85a00d0941894c3d1ed7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -9,3 +9,8 @@ vendor/
 vendor.tar.xz
 /window-config.ion
 manual/builtins/
+
+# This file get recreated by the command "make tests" anyway
+# with home folder of the current user aka $HOME.
+# Without this line, there is a danger of contributors committing their home folder path accidentally.
+tests/fn-root-vars.out
diff --git a/tests/fn-root-vars.out b/tests/fn-root-vars.out
deleted file mode 100644
index bae0b7bbc27cb2df6fdab3c851feef354b35e99f..0000000000000000000000000000000000000000
--- a/tests/fn-root-vars.out
+++ /dev/null
@@ -1,4 +0,0 @@
-/home/adminxvii
-${x::1B}]0;${USER}: ${PWD}${x::07}${c::0x55,bold}${USER}${c::default}:${c::0x4B}${SWD}${c::default}# ${c::reset}
-1000
-