From 73b9bdaaaae66ca0f85e4c2fa83a239559fdca0a Mon Sep 17 00:00:00 2001 From: Dima Krasner Date: Wed, 11 Sep 2024 04:57:12 +0000 Subject: [PATCH] disable saving to history when running gplacesrc --- gplaces.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gplaces.c b/gplaces.c index f746fec..cbdaa0a 100644 --- a/gplaces.c +++ b/gplaces.c @@ -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;