Filename completion in Linux with mixed case and ignored case.

2010-06-23 1 min read bash Linux
This is one of my favourites, alwahs keep it handy. Linux is case sensitive by nature but you will always find filenames jumbled up in the case. So what is the solution: bind ”set completion-ignore-case on” Just execute the above in your bash command and file/dir name will behave like Windows. Remember that this is per session setting and thus the names do not get changed internally, it only changes the way to access it (specifically completion only). Continue reading

bash completion not working on Fedora

2010-06-06 1 min read bash Fedora Linux
I had bash completion installed and after that I had made huge changes to my bashrc and also installed bashstyle. After this the bash-completion stopped working. I had to spend a lot of time to figure out that the easiest solution was to source the bash-completion again in the end. đŸ™‚ . /etc/bash_completion

unbound variable – bash completion not working and having issues with other stuff like command not found.

2010-03-23 1 min read bash Learning Linux
I generally use vi/vim for all my practical purposes of working with text files. And I have all the vi/vim plugins required to work with the files. This causes the following to be in the skeleton for all the bash scripts that I create: set -o nounset # Treat unset variables as an error With this all the unbound variables as errors and was problem with all the shell scripts that was being sourced in the startup of bash. Continue reading