在Windows上使用特殊字符时,Cygwin别名运行不同的命令

时间:2018-08-13 14:14:29

标签: windows-10 cygwin notepad++ alias

  • 操作系统:Windows 10
  • 应用程序:PHPStorm
  • CLI:Cygwin(重击)
  • 编辑器:记事本++

我的别名没有正常运行。 由于短命令运行良好,我猜想这与特殊字符的使用有关。

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

1 个答案:

答案 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/';