我的别名没有正常运行。 由于短命令运行良好,我猜想这与特殊字符的使用有关。
C:\ Cygwin \ home \ me \ .profile
alias symclear='bin/console cache:clear'
alias symdbcreate='php bin/console doctrine:database:create'
alias symdbfill='php bin/console doctrine:fixtures:load --no-interaction'
alias symdbupdate='php bin/console doctrine:schema:update --force'
alias syment='php bin/console doctrine:generate:entity --entity'
alias syminfo='bin/console config:dump-reference'
alias symroute='bin/console debug:router'
alias symrun='php bin/console server:run'
alias symtest='./vendor/bin/simple-phpunit'
alias symbehat='/vendor/bin/behat features/'
终端
$ php bin/console server:run
[OK] Server listening on http://127.0.0.1:8000
// Quit the server with CONTROL-C.
$ symrun
" is not defined. un
答案 0 :(得分:0)
记事本++
Settings -> Preferences -> New Document/Default Directory
-> New Document -> Format -> Unix
C:\ Cygwin \ home \ me.profile
alias symclear='php bin/console cache:clear';
alias symdbcreate='php bin/console doctrine:database:create';
alias symdbfill='php bin/console doctrine:fixtures:load --no-interaction';
alias symdbupdate='php bin/console doctrine:schema:update --force';
alias syment='php bin/console doctrine:generate:entity --entity';
alias syminfo='php bin/console config:dump-reference';
alias symroute='php bin/console debug:router';
alias symrun='php bin/console server:run';
alias symtest='./bin/phpunit';
alias symbehat='/vendor/bin/behat features/';