From ff3b5ea6c01c86498baa7d183aeff14d7a2eeb84 Mon Sep 17 00:00:00 2001 From: Paul Esch-Laurent Date: Tue, 5 Dec 2017 11:17:11 -0500 Subject: [PATCH] Add Bash 'autocd' option Lazier `cd`ing -- no need to actually type 'cd'! --- .bash_profile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.bash_profile b/.bash_profile index 6bbd534..f322566 100644 --- a/.bash_profile +++ b/.bash_profile @@ -7,9 +7,12 @@ shopt -s histappend # Check the window size after each command and update LINES and COLUMNS shopt -s checkwinsize -# Enable globstar pattern matching (e.g. **/*.foobar) +# Globstar pattern matching (e.g. **/*.foobar) shopt -s globstar +# Auto-cd to a directory without specifying 'cd' (e.g. foobar) +shopt -s autocd + # Source z (https://github.com/rupa/z) source ~/.bash/z/z.sh