From c5f4285e1d3964d2cee9b736eb34bdc073662bf1 Mon Sep 17 00:00:00 2001 From: TrudeEH Date: Sat, 22 Jun 2024 19:03:07 +0100 Subject: [PATCH] Add bash completions --- dotfiles/.bashrc | 8 ++++---- install.sh | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dotfiles/.bashrc b/dotfiles/.bashrc index 9b36520e..bf85d4b7 100644 --- a/dotfiles/.bashrc +++ b/dotfiles/.bashrc @@ -90,11 +90,11 @@ alias v='nvim' set completion-ignore-case On +# Use bash-completion, if available +[[ $PS1 && -f /usr/share/bash-completion/bash_completion ]] && \ + . /usr/share/bash-completion/bash_completion + export OFLAGS="--ozone-platform-hint=auto" export PATH=$PATH:/home/trude/.local/bin -export NVM_DIR="$HOME/.config/nvm" -[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm -[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion -if [ -f "/home/trude/.config/fabric/fabric-bootstrap.inc" ]; then . "/home/trude/.config/fabric/fabric-bootstrap.inc"; fi diff --git a/install.sh b/install.sh index b04af68d..75e7210a 100755 --- a/install.sh +++ b/install.sh @@ -182,7 +182,7 @@ for selection in $main_menu; do } | dialog --backtitle "$BACKTITLE" --programbox "Compile Neovim" 30 90 # Utilities - sudo apt-get install htop fzf tmux git vim wget curl feh scrot dunst -y &>> logs/dotfiles.log + sudo apt-get install htop fzf tmux git wget curl feh scrot dunst bash-completion -y &>> logs/dotfiles.log dialogDotfiles 85 5 5 5 5 5 5 5 7 4 # Compile