commit b0af2eae0e53cb6e86ce7e6f7e8e4bcae387c47c (patch)
parent f397fcf556976f549bf0a7f61c3e81f64be8255d
Author: Alex Karle <alex@alexkarle.com>
Date: Sun, 23 May 2021 00:13:32 -0400
bash: Add direxpand option to tab-complete $vars
This is super useful when combo'd with short variable names for common
directories (like $f for ~/src/frontend).
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/.bashrc b/.bashrc
@@ -23,6 +23,7 @@ include "$ENV"
stty -ixon # Disable XON/XOFF to allow forward search w CTRL-S
shopt -s checkwinsize # check win size after each cmd, update if needed
shopt -s histappend # append to the history file, don't overwrite it
+shopt -s direxpand # expand variables in directory names
HISTSIZE=10000 # Max lines in history (in memory)
HISTFILESIZE=200000 # Max size of the history file
HISTIGNORE=fg:pwd:ls # Don't store common commands in history