Hacker Newsnew | past | comments | ask | show | jobs | submit | more jcsalterego's commentslogin

Sounds like good security though.


Based on the differences between /etc/bashrc and /etc/zshrc, I don't think so, but I don't know for sure.


There are more people like you, I bet!


There are dozens of us. Dozens!


I am one of the dozens. If only I was able to locate a history-related technology job. It seems like you need to be in Washington DC to find anything like that.


In the Netherlands, where I live, there is the International Institute of Social History, which does a lot of data processing, and has programmers as employees. As a student I screw up an interview very badly, by not showing up. I still regret it after 20 years. How stupid can a youngster be. On the other hand I don't have any complaints about my work and pay and benefits at the jobs I have had since then, which probably would have been very different had I gone the historyprogrammer route.


I'm quite happy that at least three historian-programmers have come together, here.


Add fourth!

But I quit the academic path due to economic reasons, i.e bad pay, and needing to apply to grants. I think unless you're explicitly acknowledged as an engineer/programmer it's hard to get anything remotely competitive.


My wife is a historian, I'm a programmer. That does not make me the fifth but at least a sympathizer ;)


We should start a club! ;)


Per the README I'm hoping to introduce a scrub command, but yeah -- if you have inline passwords in the commands you run, that's less than great.


Sounds like something that should be optional in the shell itself, scrub command before writing to history.

Naive non-programmers version: use a hash table to censor all substrings of a given length range that match against it ... sounds like it might be expensive (in compute time), also you have to keep a list of those hashes around.

Bet it's been wontfix-ed in at least one major shell?


See the HISTCONTROL environment variable in bash (and maybe something similar in other shells):

    HISTCONTROL
        A colon-separated list of values controlling how commands are
        saved on the history list.  If the list of values includes
        "ignorespace", lines which begin with a space character are not
        saved in the history list.
        [...]
This is convenient because any time you don't want a command saved in history, just start it with a leading space.

Also look at HISTIGNORE for finer grained control.


zsh history, from what I've seen a long time ago, can include timestamps, which is why I added a timestamp field in the schema, though it's currently unpopulated: https://github.com/jcsalterego/historian/blob/3bf7158b163d3f...

#soon


Bash can as well, though I'm not certain if the OS X version is new enough.

http://wiki.bash-hackers.org/syntax/shellvars#histtimeformat


If you're an oh-my-zsh user there is a handy part of the .zshrc config for enabling and customizing the timestamp format. Dead simple.


Hooray!


FWIW, my understanding of sqlite is that it allows atomic operations against the same DB, even if there are different clients... so I would guess at worst the clobbering is minimal. I could be wrong, though.


The documentation has failed - it's actually just an incrementing ID right now, not a frequency! I should make a clarification soon.


I just saw numbers and assumed they were frequencies, my bad!


oh... so can I type !id to re-run the command?


Apparently not:

    > hist /youtube-dl
    76
             youtube-dl --help

    > !76:p
    brew install sox


Yeah unfortunately it's just an opaque number now, basically.


I tried!


Dangit


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: