title: Issue to open credentials file
body: <p>I am trying to open credentials file with this command.</p>
  
  <pre><code>rails credentials:edit
  </code></pre>
  
  <p>It returns :</p>
  
  <blockquote>
    <p>No $EDITOR to open file in. Assign one like this:</p>
    
    <p>EDITOR="mate --wait" bin/rails credentials:edit</p>
    
    <p>For editors that fork and exit immediately, it's important to pass a
    wait flag, otherwise the credentials will be saved immediately with no
    chance to edit.</p>
  </blockquote>
  
  <p>So I make this command : </p>
  
  <pre><code>EDITOR="subl --w" bin/rails credentials:edit
  </code></pre>
  
  <p>However, terminal responds with "New credentials encrypted and saved" without opening an editor. </p>