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…
atuin.sh
Yash: Yet Another Shell
11–20 of 54 posts
Re: Yash: Yet Another Shell
#12It's quite nice. However a few basic functions are missing, like separate history for each instance.
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…
# History file for zsh HISTFILE=~/.zsh_history
# How many commands to store in history HISTSIZE=10000 SAVEHIST=10000
# Share history in every terminal session
setopt SHARE_HISTORY
Re: Yash: Yet Another Shell
#13It's quite nice. However a few basic functions are missing, like separate history for each instance.
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…
Re: Yash: Yet Another Shell
#14Earlier 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?
https://docs.atuin.sh/reference/search/#examples
You could also make "directory" the default filter mode or bind it to up-arrow:
https://docs.atuin.sh/configuration/config/#filter_mode
https://docs.atuin.sh/configuration/key-binding/#custom-up-a...
Re: Yash: Yet Another Shell
#15Earlier quoted context omitted.
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?
`atuin search --cwd .` https://docs.atuin.sh/reference/search/#examples You could also make "directory" the default filter mode or bind it to up-arrow: https://docs.atuin.sh/configuration/config/#filter_mode https://docs.atuin.sh/configuration/key-binding/#custom-up-a...
Re: Yash: Yet Another Shell
#16I 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…
Re: Yash: Yet Another Shell
#17I 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…
Re: Yash: Yet Another Shell
#18What's the tl;dr on why one would use Yash vs anything else? ReadMe doesn't really explain what's unique here.
Re: Yash: Yet Another Shell
#19It's quite nice. However a few basic functions are missing, like separate history for each instance.
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…
shopt -s histappend
PROMPT_COMMAND="history -a"Re: Yash: Yet Another Shell
#20I 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’m a huge nushell fan. if you can stand a non POSIX shell, it’s great for working with any kind of structured data and has a sane mostly FP scripting language