Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8.9.x Head has issues with ZSH #1537

Closed
aweingarten opened this issue May 27, 2017 · 6 comments
Closed

8.9.x Head has issues with ZSH #1537

aweingarten opened this issue May 27, 2017 · 6 comments
Labels
Bug Something isn't working

Comments

@aweingarten
Copy link
Contributor

When updating BLT to the lastest 8.9. HEAD I encountered this error. Assuming it's due to some of the recent alias commits.

composer update acquia/blt
Gathering patches for root package.
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 0 installs, 1 update, 0 removals
Gathering patches for root package.
Gathering patches for dependencies. This might take a minute.
  - Updating acquia/blt 8.x-dev (82734f8 => 06f892e):  Checking out 06f892e50b
Writing lock file
Generating autoload files
Updating BLT templated files...
 > blt update
Copying files from BLT's template into your project...
Merging BLT's project.yml template with your project's blt/project.yml...
Removing deprecated files and directories...
> install-alias
[Filesystem\FilesystemStack] touch ["/Users/me/.bash_profile"]
[Filesystem\FilesystemStack]  Failed to touch "/Users/me/.bash_profile".
[Filesystem\FilesystemStack]  Failed to touch "/Users/me/.bash_profile".
[Filesystem\FilesystemStack]  Exit code 1
BLT can automatically create a Bash alias to make it easier to run BLT tasks.
This alias may be created in .bash_profile or .bashrc depending on your system architecture.
@grasmash grasmash added the Bug Something isn't working label May 28, 2017
@grasmash
Copy link
Contributor

Does the alias work? Also, is /Users/me/.bash_profile writable? Can you try removing the alias and seeing if it gets re-installed?

@aweingarten
Copy link
Contributor Author

If I delete the alias and start with a fresh terminal, and run composer run-script blt-alias get zsh: command not found: blt

My .bash_profile was not writable. Making it so looked like this

composer run-script blt-alias
> blt install-alias
[Filesystem\FilesystemStack] touch ["/Users/adam.weingarten/.bash_profile"]
BLT can automatically create a Bash alias to make it easier to run BLT tasks.
This alias may be created in .bash_profile or .bashrc depending on your system architecture.
blt
zsh: command not found: blt

@grasmash
Copy link
Contributor

grasmash commented May 28, 2017

I don't really know what would cause that error. I made a small modification that may affect things in #1540. Can you try it out?

Also, what's the content of ~/zshrc?

@aweingarten
Copy link
Contributor Author

So I think at this point the issue is that BLT isn't touching zshrc period.

@grasmash
Copy link
Contributor

grasmash commented May 29, 2017

When I run this:

export SHELL=/bin/zsh; blt install-alias

BLT does create an alias in ~/.zshrc

@grasmash
Copy link
Contributor

Addressed in #1544.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants