Bash made better with shopt
1.Enable automatic typo correction for directory names
shopt -s cdspell
Testing
hemanth@ubuntu:/var/log$ cd /tp /tmp hemanth@ubuntu:/tmp$ hemanth@ubuntu:/$ cd /hom /home hemanth@ubuntu:/home$ hemanth@ubuntu:/home$ cd /mt /mnt hemanth@ubuntu:/mnt$
2.Enable ** to expand files recursively (>=bash-4.0)
shopt -s globstar
3.Avoiding history file to be overwritten
shopt -s histappend
4.Enable cd by variable names
shopt -s cdable_vars</cdoe> <b>5.Bash autocomplete case insensitive search</b> <code>shopt -s nocaseglob
6.Auto cd on ~ to /home/user (>=bash-4.0)
shopt -s autocd
Recent blog posts
- watir-webdriver web inspector
- gem list to gemfile
- Packing ruby2.0 on debian.
- Made it into The Guinness Book!
- to_h in ruby 2.0
- Filter elements by pattern jQuery.
- Better HTML password fields for mobile ?
- Grayscale image when user offline
- nth-child CSS pseudo-class Christmas colors
- EventEmitter in nodejs