Skip to content

Commit

Permalink
[CLI] Shell: Add newline in output alias block (#1950)
Browse files Browse the repository at this point in the history
* Add newline in output alias block

* Changesets

---------

Co-authored-by: Fran Dios <fran.dios@shopify.com>
  • Loading branch information
madmath and frandiox committed Apr 8, 2024
1 parent d4436d6 commit ab0df5a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/short-flowers-enjoy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@shopify/cli-hydrogen': patch
---

Add a newline after the `h2` alias created ZSH/Bash profiles.
3 changes: 2 additions & 1 deletion packages/cli/src/lib/shell.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@ export async function createPlatformShortcut() {

const BASH_ZSH_COMMAND = `
# Shopify Hydrogen alias to local projects
alias ${ALIAS_NAME}='$(npm prefix -s)/node_modules/.bin/shopify hydrogen'`;
alias ${ALIAS_NAME}='$(npm prefix -s)/node_modules/.bin/shopify hydrogen'
`;

const FISH_FUNCTION = `
function ${ALIAS_NAME} --wraps='shopify hydrogen' --description 'Shortcut for the Hydrogen CLI'
Expand Down

0 comments on commit ab0df5a

Please sign in to comment.