Update global gitignore with ~ variable.