From b0af2eae0e53cb6e86ce7e6f7e8e4bcae387c47c Mon Sep 17 00:00:00 2001 From: Alex Karle Date: Sun, 23 May 2021 00:13:32 -0400 Subject: [PATCH] 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). --- .bashrc | 1 + 1 file changed, 1 insertion(+) diff --git a/.bashrc b/.bashrc index 5421054..131361d 100644 --- 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 -- libgit2 0.28.4