mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-22 11:19:22 +01:00
{bash,zsh}rc: alias prettier to pnx instead
This commit is contained in:
parent
48538ae680
commit
a76b159eb3
@ -612,7 +612,7 @@ if hash corepack 2> /dev/null; then
|
|||||||
alias npm="corepack npm"
|
alias npm="corepack npm"
|
||||||
alias npx="corepack npx"
|
alias npx="corepack npx"
|
||||||
if ! hash prettier 2> /dev/null; then
|
if ! hash prettier 2> /dev/null; then
|
||||||
alias prettier="pnpm exec prettier --cache --ignore-unknown"
|
alias prettier="pnpx prettier --cache --ignore-unknown"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "Information: corepack is not installed."
|
echo "Information: corepack is not installed."
|
||||||
|
2
rc/zshrc
2
rc/zshrc
@ -602,7 +602,7 @@ if hash corepack 2>/dev/null; then
|
|||||||
alias npm="corepack npm"
|
alias npm="corepack npm"
|
||||||
alias npx="corepack npx"
|
alias npx="corepack npx"
|
||||||
if ! hash prettier 2>/dev/null; then
|
if ! hash prettier 2>/dev/null; then
|
||||||
alias prettier="pnpm exec prettier --cache --ignore-unknown"
|
alias prettier="corepack pnpx prettier --cache --ignore-unknown"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "Information: corepack is not installed."
|
echo "Information: corepack is not installed."
|
||||||
|
Loading…
Reference in New Issue
Block a user