src/MakeCommand.php
protected function configureAliases()
    {
        $file = "{$this->basePath}/aliases.sh";
        if (file_exists($file)) {
            $fileContent = file_get_contents($file);
            $fileContent = str_replace(
                'alias p=\'cd ~/Code/artestead\'',
                'alias p=\'cd ~/Code/'.$this->defaultName.'\'',
                $fileContent
            );
            file_put_contents($file, $fileContent);
        }
    }
protected function configureAliases()
    {
        $file = "{$this->basePath}/aliases.sh";
        if (file_exists($file)) {
            $fileContent = file_get_contents($file);
            $fileContent = str_replace(
                'alias p=\'cd ~/Code/artestead\'',
                'alias p=\'cd ~/Code/'.$this->defaultName.'\'',
                $fileContent
            );
            file_put_contents($file, $fileContent);
        }
    }
protected function configureAliases ( ) { $ file = "{$this->basePath}/aliases.sh" ; if ( file_exists ( $ file ) ) { $ fileContent = file_get_contents ( $ file ) ; $ fileContent = str_replace ( 'alias p=\'cd ~/Code/artestead\'' , 'alias p=\'cd ~/Code/' . $ this -> defaultName . '\'' , $ fileContent ) ; file_put_contents ( $ file , $ fileContent ) ; } }
Updates the aliases file with a shortcut to the project folder.
Updates the aliases file with a shortcut to the project folder .