Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm using MacOS 10.8.3 and Chrome Version 26.0.1410.65. And i want try to change devtools style.

When put this code on Terminal:

 ~/Library/Application Support/Google/Chrome/Default/User StyleSheets/Custom.css

Get this error:

-bash: /Users/Baris/Library/Application: No such file or directory

I checked directory paths and really i haven't Chrome directory on Application Support/Google

Where is stored custom.css on my Mac?

share|improve this question
    
This is outdated, please refer to: stackoverflow.com/questions/21207474/… –  Thiago Duarte Sep 5 at 16:57

1 Answer 1

up vote 4 down vote accepted

When you use a shell like Bash and enter a path that contains whitespace, it will interpret the whitespace as the argument separator. For example,

~/Library/Application Support/Google/Chrome/Default/User StyleSheets/Custom.css

will be seen by the shell as three arguments:

~/Library/Application 
Support/Google/Chrome/Default/User 
StyleSheets/Custom.css

Logically, these don't exist. When you use open to open the CSS file, it'll tell you:

The files /Users/werner/Library/Application, /Users/werner/Support/Google/Chrome/Default/User, and /Users/werner/StyleSheets/Custom.css do not exist.

So you need to quote your variables, or escape the space:

open -e "~/Library/Application Support/Google/Chrome/Default/User StyleSheets/Custom.css"
open -e ~/Library/Application\ Support/Google/Chrome/Default/User\ StyleSheets/Custom.css

See also Quotes and escaping. For the gory details, look at this post: Filenames in Shell

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.