Hacker Newsnew | past | comments | ask | show | jobs | submitlogin



Don't see why not.


Right, but I meant, "Tell me how". I figured it out and dashed off a quick post: http://herdrick.tumblr.com/post/24563032599/display-git-bran...


You can also find `how' on the Arch-Linux Wiki (https://wiki.archlinux.org/index.php/Fish#Configuration_Sugg...).

Also judging by your blog you might like something like

    PROMPT_COMMAND="${PROMPT_COMMAND:+$PROMPT_COMMAND ; }"'echo $$ $USER \
                   "$(pwd) $(history 1)" >> ~/.bash_eternal_history'
in your .bashrc, so that you don't have to abuse the bash-history for keeping a lifetime of commands around.


Is it abuse? It hasn't slowed anything down yet.

Also, in the blog post I linked to the link you mention.


I don't know whether it's abuse. I just don't trust bash's history enough.

Yeah, I now noticed that you already put that link in the blog.


And to be clear, what's described in that link doesn't work, at least not on my OS X machine. Thus the code in my blog post.




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

Search: