Stop bind -x command output from overwriting current prompt string
0
votes
1
answer
52
views
I have the following two bash aliases defined in
.bash_aliases
:
# Better ls -al
bind -x '"\el":"command ls -lAtr"'
# Show newest 10 files in a folder
bind -x '"\eh":"command ls -1U | head"'
Now when I hit Alt+h or Alt+l to invoke the command, the command output overwrites the last shell prompt. This makes it hard to find where an ls
starts and ends (if invoked multiple times). How can I stop it from doing that?
Asked by glades
(117 rep)
Dec 20, 2024, 02:26 PM
Last activity: Dec 23, 2024, 09:39 PM
Last activity: Dec 23, 2024, 09:39 PM