From 8c9ee859c94e93e6b58fb4397dd955718dcaead6 Mon Sep 17 00:00:00 2001 From: ray Date: Sat, 12 Mar 2022 17:58:46 +0000 Subject: [PATCH] better tab completion --- bashrc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bashrc b/bashrc index 0ceb29f..7be1f9e 100644 --- a/bashrc +++ b/bashrc @@ -11,6 +11,14 @@ export HISTCONTROL=ignoreboth:erasedups [ -f "$HOME/.config/bash/gitstatus/gitstatus.prompt.sh" ] && . "$HOME/.config/bash/gitstatus/gitstatus.prompt.sh" PS1='\t \[\033[01;32m\]\u@\h\[\033[00m\] \[\033[01;34m\]\w\[\033[00m\]${GITSTATUS_PROMPT:+ $GITSTATUS_PROMPT}\n\[\033[01;$((31+!$?))m\]\$\[\033[00m\] \[\e]0;\u@\h: \w\a\]' +# If there are multiple matches for completion, Tab should cycle through them +bind TAB:menu-complete +# Display a list of the matching files +bind "set show-all-if-ambiguous on" +# Perform partial (common) completion on the first Tab press, only start +# cycling full results on the second Tab press (from bash version 5) +bind "set menu-complete-display-prefix on" + source ~/.profile export NVM_DIR="$HOME/.nvm"