Don't want executive attribute

Daniel Colascione dancol@dancol.org
Wed Jan 18 20:34:00 GMT 2012


On 1/17/12 1:32 AM, Pan ruochen wrote:
> Hi Al,
> 
> Cygwin treat most of files executive. But I really don't like this
> feature. Is there any option to disable it?
> 

Here excerpts from my configuration files. I can't change the
executable permission issue, but I can tweak my environment so that
the executable bit isn't in my face all the time:

.profile:

if [[ -z $LS_COLORS ]] && [[ -r ~/.dircolors ]]; then
    eval "`dircolors -b ~/.dircolors`"
fi


.dircolors
# Don't highlight files just because they have the exec bit set
EXEC 00
.cmd 01;32 # executables (bright green)
.exe 01;32
.com 01;32
.btm 01;32
.bat 01;32
.sh  01;32
.csh 01;32


.bashrc:
alias ls='LANG=en_US ls -Gh --file-type --color=tty
--hide="\$RECYCLE.BIN" --hide="System Volume Information"
--hide="ntuser.dat*" --hide="NTUSER.DAT*"'

# Complete foo.exe as foo, not foo.exe
shopt -s completion_strip_exe

# For purposes of completion don't treat files with the following
# extensions as
EXECIGNORE=*.dll:*.config:*.manifest:*.msc


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 235 bytes
Desc: OpenPGP digital signature
URL: <http://cygwin.com/pipermail/cygwin/attachments/20120118/55d1b655/attachment.sig>


More information about the Cygwin mailing list