Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

fish terminal highlights 1 folder and most of it's subfolders

enter image description hereThe title pretty much says is all. one of often used used folders in my fish terminal suddenly became highlighted in yellow. Most of it's sub folders are highlighted in yellow too. Not sure what happened. it's on mac Yosemite

like image 603
Gambai Avatar asked Oct 20 '25 21:10

Gambai


2 Answers

Fish shell highlighted those directories yellow because that directory's permissions is set so that everyone can read, write, and execute. Essentially fish shell is warning you that the directory has the least restrictive permissions in case you weren't aware.

For example, in this screenshot:

linked here

  1. If I change the permissions for the directory "oranges" to everybody can read+write+execute (chmod 777 oranges/), then you can see fish shell adds the yellow highlight.
  2. When I change the permissions to something more restrictive (chmod 775 /oranges), then the directory "orange" is no longer highlighted.

Here's a good explanation of file permissions and the command chmod for more detail.

like image 139
rowang Avatar answered Oct 24 '25 22:10

rowang


When you say "highlighted" do you mean when running ls? Probably you have $LSCOLORS set to something ugly.

Here's how you can set it to something nice, in fish:

set -Ux LSCOLORS gxfxbEaEBxxEhEhBaDaCaD

which makes it look like so:

nice LSCOLORS

(Just run that command once, don't put it in a startup file or anything)

like image 44
ridiculous_fish Avatar answered Oct 24 '25 21:10

ridiculous_fish



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!