[Tutor] ls *.py[co] >> .hidden
Albert-Jan Roskam
fomcl at yahoo.com
Fri May 22 08:12:23 CEST 2015
----- Original Message -----
> From: Alan Gauld <alan.gauld at btinternet.com>
> To: tutor at python.org
> Cc:
> Sent: Friday, May 22, 2015 1:44 AM
> Subject: Re: [Tutor] ls *.py[co] >> .hidden
>
> On 21/05/15 17:57, Emile van Sebille wrote:
>> On 5/21/2015 9:28 AM, Albert-Jan Roskam via Tutor wrote:
>>> I just created an alias for this:
>>> alias hidepycs="ls *.py[co] > .hidden"
>>
>> Close -- try
>>
>> alias ls='ls --hide=*.py[co]'
>>
>
> I thought we'd established that this was to
> control visibility in the File Manager GUI
> not the CLI? So an 'ls' flag isn't going to
> help there.
Yes, it was about the visibility in Nautilius. Much easier on the eye when the bytecode files are not visible.
Also, I sometimes accidentally open a .pyc when I intend to open the corresponding .py.
More information about the Tutor
mailing list