Bash Complete & Command History | Arch Linux | Tutorial | bashrc | Ubuntu | Linux Mint

Опубликовано: 15 Август 2024
на канале: Linux Zone
36
0

enable programmable completion features (you don't need to enable
this, if it's already enabled in /etc/bash.bashrc and /etc/profile, in ubuntu mint debian.
For Vanilla arch ...

if ! shopt -oq posix; then
if [ -f /usr/share/bash-completion/bash_completion ]; then
. /usr/share/bash-completion/bash_completion
elif [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
fi

#history_with_arrow_keys for all linux distros like ubuntu, Mint, Debian, Arch
bind '"\e[A":history-search-backward'
bind '"\e[B":history-search-forward'

EndeavourOS bashrc file:-
https://github.com/endeavouros-team/E...

#archlinux #tutorial #bashrc