DEV Community

Discussion on: My Favorite Bash Tips, Tricks, and Shortcuts

Collapse
jonasbn profile image
jonasbn

One of the less funky bash tricks, which I find it a bit overlooked is the ability to trim or slim the command line history.

Here is an example:

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

Lifted from my "Today I Learned" collection