From acf8d989dfe4dfcf27819d6c050dce2f33e41e41 Mon Sep 17 00:00:00 2001 From: Josue Zamudio Date: Sun, 2 Jun 2024 15:18:08 -0700 Subject: [PATCH] add completions --- bashrc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/bashrc b/bashrc index 730dd30..3a2c0f4 100644 --- a/bashrc +++ b/bashrc @@ -15,6 +15,16 @@ GIT_BRANCH="${YELLOW}\$(parse_git_branch)${RESET}" PS1="${USER_NAME}@${HOST_NAME}:${DIR}${GIT_BRANCH}\n> " +# enable programmable completion features (you don't need to enable +# this, if it's already enabled in /etc/bash.bashrc and /etc/profile +# sources /etc/bash.bashrc). +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 alias xfreerdp='xfreerdp +clipboard /dynamic-resolution' alias ssh='ssh -XC'