Skip to content

[Bug]: Aliases not recognized from git bash terminal for PhpStorm #820

@pverhaert

Description

@pverhaert

Platform

Windows

Operating system version

Windows 11

System architecture

Windows

Herd Version

1.7.2

PHP Version

No response

Bug description

The solution where aliases are added to .bash_profile works for "regular" Git Bash, but not for the Git Bash terminal in PhpStorm.
A better solution I have found is to move the aliases the to a new .bashrc file.
With this configuration, the aliases work both in regular Git Bash and in PhpStorm's Git Bash terminal.

.bash_profile

if [ -f ~/.bashrc ]; then
   source ~/.bashrc
fi

.bashrc
also added an alias for expose ( = all .bat files in %USERPROFILE%\.config\herd\bin)

alias herd='herd.bat'
alias php='php.bat'
alias composer='composer.bat'
alias laravel='laravel.bat'
alias expose='expose.bat'

Steps to reproduce

No response

Relevant log output

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions