This guy is the inverse of me, because I have linked my .bash_history to /dev/null
You could just disable it instead, saves some cpu cycles.
“I have [bash] history back to ~2003”
111–120 of 148 posts
Re: “I have [bash] history back to ~2003”
#112I keep a pretty long bash history, but I don't have it unified among machines or anything. Others have mentioned several handy tweaks for doing this, but I didn't see all of the ones I use so I thought I'd share them here. One of the important bits is the HISTIGNORE. I am interested in commands that I might want to search for and run again one day, so I filter out commands I consider to be clutter. # Configure my his…
Re: “I have [bash] history back to ~2003”
#113Is hostname,pid,date really enough to avoid collisions? If avoiding them is really important, I don't think you have any choice other than to go the whole hog and basically implement half of Maildir.
Re: “I have [bash] history back to ~2003”
#114Earlier quoted context omitted.
I'd be quite interested in someone provided this sort of thing as a SaaS-like drop-in to Bash and Zsh if someone wants a fun weekend project..
I've wanted this as well... plus keep track of how long commands took to run and (heck, why not?) output!
Usually this takes years!
Re: “I have [bash] history back to ~2003”
#115I guess the downside of this is that ctrl+r would only search the current day's history? Personally I at least increased the history kept with HISTFILESIZE=500000 and HISTSIZE=5000
cat `find "${HOME}/.history" -type f | grep -v ".allhistory"` > ${HOME}/.history/.allhistory
history -r ${HOME}/.history/.allhistoryRe: “I have [bash] history back to ~2003”
#116$ history | wc -l 56201 I use a simple prompt_command hook to push my history (from all my machines) to a central MySQL database( https://github.com/fredsmith/history-db ). Entries are de-duped and a tally is kept so I can do simple ad-hoc reporting: mysql> select * from history order by count DESC limit 10; +-------+---------------------+-----------+----------+-------+ | id | timestamp | command | hostname | count |…
You owe the GNU coreutils project $392 https://github.com/diafygi/gnu-pricing
That's good, because it would be extremely disturbing if someone from the FSF/GNU coreutils team thought charging like this was okay.
Re: “I have [bash] history back to ~2003”
#117$ history | wc -l 56201 I use a simple prompt_command hook to push my history (from all my machines) to a central MySQL database( https://github.com/fredsmith/history-db ). Entries are de-duped and a tally is kept so I can do simple ad-hoc reporting: mysql> select * from history order by count DESC limit 10; +-------+---------------------+-----------+----------+-------+ | id | timestamp | command | hostname | count |…
You owe the GNU coreutils project $392 https://github.com/diafygi/gnu-pricing
Maybe true, but keep in mind that the main coreutils maintainers (including the parent) are funded by Red Hat. There are plenty of FOSS projects that do suffer from a lack of funding; coreutils, GCC, etc are certainly not one of them. As such, if your goal is to help the FOSS community at large, you might want to consider channeling the money to other important projects.
Maybe the donation link already does such channeling; I am curious about this.
Re: “I have [bash] history back to ~2003”
#118Earlier quoted context omitted.
What leads you to believe OP doesn't use FreeBSD or any other Unixalike? :)
I mostly do (MacOS), but: $ which ls /usr/local/opt/coreutils/libexec/gnubin/ls I'd say $392 seems like less than I should contribute.
Which makes me wonder, does Apple have an official stance on supporting open source they use?
Re: “I have [bash] history back to ~2003”
#119Is hostname,pid,date really enough to avoid collisions? If avoiding them is really important, I don't think you have any choice other than to go the whole hog and basically implement half of Maildir.
Mostly because I can't switch to another machine within 1s
Re: “I have [bash] history back to ~2003”
#120https://github.com/uxcn/scripts/blob/master/misc/bash/newsbe...