X-Git-Url: http://git.iain.cx/?p=profile.git;a=blobdiff_plain;f=.profile.d%2Foptions.bashrc;h=80001155e8412ef2fe33c2e7b30460a4cf80427f;hp=3d87c1f87466a758beb35d5c0c7354be451d7b03;hb=a8e823fa2005ab190af0461c967f353b7dbb5a51;hpb=5b55ae5ffc76dae9d0f2a7f4312f8398a8d96db7 diff --git a/.profile.d/options.bashrc b/.profile.d/options.bashrc index 3d87c1f..8000115 100644 --- a/.profile.d/options.bashrc +++ b/.profile.d/options.bashrc @@ -1,5 +1,3 @@ -# $Id$ -# # Bash variables and options. # Some of these are (now) the default but listed for completeness. # @@ -26,11 +24,11 @@ shopt -u hostcomplete shopt -u huponexit # Handle accidental tab mashing at start of a line. -shopt -s no_emptycmd_completion +shopt -s no_empty_cmd_completion # The Red Hat The -shopt -u nocaseglob - -# Return a null string when no matches are found for a glob, rather than the -# literal pattern. -shopt -s nullglob +if [ "$OSTYPE" = "cygwin" ]; then + shopt -s nocaseglob +else + shopt -u nocaseglob +fi