DEV Community 👩‍💻👨‍💻

jonasbn
jonasbn

Posted on • Updated on

TIL: Slimming bash History

Slimming bash History

If you want to have history from your shell with some more value ignoring all of the basic commands have a look at setting the environment variable: HISTIGNORE.

This is based on the example by Kenneth Geisshirt from his slidedeck available at SlideShare, with my own addition.

$ export HISTIGNORE="pwd:ls:ls -l:cd:clear"
Enter fullscreen mode Exit fullscreen mode

Source: SlideShare

Originally posted in my TIL collection

Top comments (0)

Let's Get Hacking

Join the DEV x MongoDB Atlas Hackathon 2022 and use your ingenuity and creativity to build an application using MongoDB's cloud based developer data platform, MongoDB Atlas.

Join the Hackathon