Live data from Hacker News

Yash: Yet Another Shell

github.com

51–54 of 54 posts

Re: Yash: Yet Another Shell

#51
post #9

Earlier quoted context omitted.

atuin.sh

I'm an atuin user and if this feature exists, I have not seen it and would love to have it. Could you expand on how to get per-directory history as something separate from global shell history?

Hit CTRL + r (by default) in the atuin menu to toggle the filter mode. Super useful.

https://docs.atuin.sh/configuration/config/#filter_mode

Re: Yash: Yet Another Shell

#52
post #21

I kind of wish there was a shell that had the option for histories localized to a directory. So I can go into a directory and then look at what I was doing when I was last in that directory. Some complicated compilation command line to compile and link a source file and a bunch of libraries that was run when I was last in that directory, for example. There'd still be the 'history' command for everything and then mayb…

I kind of wish there was a project-oriented complete desktop environment, where you could enter a project and everything was context-sensitive to it. editor, files, directories, shell, browser, whatever. sort of a way to work on projects, then put them on old. and maybe meta-projects to choose, track, arrange, manage some or all projects. maybe by area of responsibility.

direnv can do a lot of that.

Nix is that taken to the logical conclusion.

Re: Yash: Yet Another Shell

#53

Earlier quoted context omitted.

Scenario: Something forces a reboot. I've got 4 bash shells open. I've been doing some compilation & linking of libraries with a crazy long gcc command. After I reboot, that's not in my history because only the first-opened bash shell's history seems to get saved and I've gotta recreate the commandline again. Is there any shell that would let me see all the history from all of the different shells I might have had op…

That's how bash works for me, I believe by the combination of these in my .profile: shopt -s histappend PROMPT_COMMAND="history -a"

I had something similar set up on my second to last work laptop. I had done some heavy customization that was mostly focused on common workflows for that job, but I have learned that I should still keep a backup even if most of it won't work elsewhere. I should have learned this lesson almost a couple decades ago when I lost all my emacs customizations on a personal computer. But instead, I decided to learn vim.

Re: Yash: Yet Another Shell

#54

I kind of wish there was a shell that had the option for histories localized to a directory. So I can go into a directory and then look at what I was doing when I was last in that directory. Some complicated compilation command line to compile and link a source file and a bunch of libraries that was run when I was last in that directory, for example. There'd still be the 'history' command for everything and then mayb…

I keep my history in a format showing the current working directory next to each command. If you're interested, have a look at

https://bezoar.org/src/dotfiles/README.htm#command-history

Post reply on HN