title: Read Powershell profile alias in a shellscript
body: <p>I have a Powershell profile set up with this alias:</p>
  <p><code>New-Alias dev  C:\websites\dev\bin\dev.sh -Scope Global</code></p>
  <p>from the Powershell this works fine. <code>dev.sh</code> is actually a binary (the .sh will come off, on for other reasons) that sets some env variables and runs commands.</p>
  <p>I have a shell script that looks like this:</p>
  <pre><code>#!/bin/sh
  
  dev rebuild
  
  dev exec identity php artisan migrate:fresh
  dev exec identity php artisan db:seed --class=DemoSeeder
  
  dev exec matching php artisan migrate:fresh --seed
  dev exec matching php artisan db:seed --class=DemoSeeder
  </code></pre>
  <p>This fails with <code>bash: dev: command not found</code></p>
  <p>I don't think this is any sort of exporting alias problem, since it works fine from the Powershell cli, but rather that the shell script can't read the alias. Possible solutions seem to prefer that I modify a .bashrc to set the alias, or to try to set it inside the script itself, but I don't think either of these will be very good to work across a team with different operating systems &amp; repo locations</p>
  <p>How can I get the .sh script to read the <code>dev</code> alias?</p>