{bash,zsh}rc: alias prettier to pnx instead

This commit is contained in:
Aminda Suomalainen 2024-07-14 14:58:51 +03:00
parent 48538ae680
commit a76b159eb3
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
2 changed files with 2 additions and 2 deletions

View File

@ -612,7 +612,7 @@ if hash corepack 2> /dev/null; then
alias npm="corepack npm"
alias npx="corepack npx"
if ! hash prettier 2> /dev/null; then
alias prettier="pnpm exec prettier --cache --ignore-unknown"
alias prettier="pnpx prettier --cache --ignore-unknown"
fi
else
echo "Information: corepack is not installed."

View File

@ -602,7 +602,7 @@ if hash corepack 2>/dev/null; then
alias npm="corepack npm"
alias npx="corepack npx"
if ! hash prettier 2>/dev/null; then
alias prettier="pnpm exec prettier --cache --ignore-unknown"
alias prettier="corepack pnpx prettier --cache --ignore-unknown"
fi
else
echo "Information: corepack is not installed."