Skip to content

Conversation

@JxJxxJxJ
Copy link

@JxJxxJxJ JxJxxJxJ commented Apr 2, 2025

Use the unaliased version of cat (always the 'cat' binary). Fixes instances where the user has a global alias to another program (i.e. 'bat').

Behavior fixed:

  • Go into normal mode with [ESC]
  • Press the keys [v v]
  • <Enters the $VISUAL editor, in my case lvim with a temporary buffer>
  • <Type something and :wq, saving and quitting the buffer>

And then:
image

On the terminal on top, I have BUFFER=$(cat $tmp_file), so it swaps cat for bat and outputs into the prompt the output of bat.

On the terminal on the bottom, I have BUFFER=$(\cat $tmp_file), so it always uses 'cat' despite my global alias to bat.

Use unaliased version of cat (always the 'cat' binary). Fixes instancies where the user has a global alias to other program (i.e. 'bat').
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant