This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Don't want executive attribute


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


Attachment: signature.asc
Description: OpenPGP digital signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]