-bash: __atuin_bind_ctrl_r=true: command not found

Hmm … atuin stopped working a little while ago when I installed something that installed its own bash_profile file

so I checked into what gets priority over .bashrc and linked .bashrc to my .bash_profile and put $(atuin init bash) at the end of that file

It was still not working so I just ran $(atuin init bash) from the command line and got the error in the subject.

Pray help me wizards of atuin. I am at the end of my bash?!

OS: macos updated
Chipset: arm ie :green_apple: silicon
Sh: Bash - GNU bash, version 5.2.37(1)-release (aarch64-apple-darwin24.2.0)

OK fixed it myself :slight_smile:

I had these commands in my alias file

# bind '"\e[A":history-search-backward'
# bind '"\e[B":history-search-forward'

They were the only binds I had and nothing was coming up for googling so I thought I would comment them out as they are now - and it is all sorted

Happy dev

Running $(atuin init bash) is simply wrong. You need to run eval "$(atuin init bash)". The error “-bash: __atuin_bind_ctrl_r=true: command not found” is unrelated to the original problem, but it is caused by the way how atuin init bash was called.

They bind up (ESC [ A) and down (ESC [ B) to the history search commands. So if your alias file is loaded after eval "$(atuin init bash)" is executed, the Atuin keybindings for up/down are overwritten. You need to disable these keybindings (as you solved), or you need to make sure eval "$(atuin init bash)" is executed after these keybindings.

1 Like

Thanks for the detailed reply.

I did move calling the aliases after atuin - to try and solve something else. I have fixed this now.