Skip to content

Commit

Permalink
Add Bash 'autocd' option
Browse files Browse the repository at this point in the history
Lazier `cd`ing -- no need to actually type 'cd'!
  • Loading branch information
Pinjasaur committed Dec 5, 2017
1 parent dfd6827 commit ff3b5ea
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .bash_profile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit ff3b5ea

Please sign in to comment.