Skip to content

Instantly share code, notes, and snippets.

View hedgemouse's full-sized avatar

hedgemouse

  • 07:44 (UTC +01:00)
View GitHub Profile
@hedgemouse
hedgemouse / clear-history.c
Created October 27, 2025 12:42
Linux .bash_history delete
// Uncomment than compile to activate debug mode
//#define DEBUG
#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
char* getHOME();
bool checkForHistory(char* history_path);