Since I use commands like git status --branch --short and ls very often, I'd like to add key combinations for them in my bashrc with bind -x. They seem to work at first and are comfortable for me, but when I use them in certain situations, the text which I write in the lxterminal window later is invisible, so I can no longer use the terminal tab because I want to see what I type.
The problem does not happen if I type the commands and press Enter instead of pressing key combinations.
How to Reproduce
Put the following line into ~/.bashrc:
bind -x '"\ea":"ls -la"'
Open a lxterminal window in a git repository folder
Press Alt+a. This should list the files in the folder because of the bind.
Type git log and press Enter.
Press q to exit the git history viewing.
Type something. The letters are now invisible / not shown but it is still
possible to type and execute a command.
Additional Information
Lxterminal version: 0.4.0-1
Bash version: The GNU Bourne Again shell 5.1.008-1
Operating system: Arch Linux with LXDE desktop (which uses Openbox)
Problem Description
Since I use commands like
git status --branch --short
andls
very often, I'd like to add key combinations for them in my bashrc withbind -x
. They seem to work at first and are comfortable for me, but when I use them in certain situations, the text which I write in the lxterminal window later is invisible, so I can no longer use the terminal tab because I want to see what I type. The problem does not happen if I type the commands and press Enter instead of pressing key combinations.How to Reproduce
~/.bashrc
:bind -x '"\ea":"ls -la"'
git log
and press Enter.Additional Information
Lxterminal version: 0.4.0-1 Bash version: The GNU Bourne Again shell 5.1.008-1 Operating system: Arch Linux with LXDE desktop (which uses Openbox)