Skip to content

Commit

Permalink
disable saving to history when running gplacesrc
Browse files Browse the repository at this point in the history
  • Loading branch information
dimkr committed Sep 11, 2024
1 parent b788dba commit 73b9bda
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions gplaces.c
Original file line number Diff line number Diff line change
Expand Up @@ -1823,11 +1823,13 @@ int main(int argc, char **argv) {
SSL_library_init();
SSL_load_error_strings();

interactive = isatty(STDIN_FILENO) && isatty(STDOUT_FILENO);
color = interactive && (getenv("NO_COLOR") == NULL);
color = (getenv("NO_COLOR") == NULL);

load_rc_files(parse_arguments(argc, argv));

interactive = isatty(STDIN_FILENO) && isatty(STDOUT_FILENO);
color = color && interactive;

shell(argc, argv);

return 0;
Expand Down

0 comments on commit 73b9bda

Please sign in to comment.