{bash,zsh}rc: actually restore corepack aliases as both is good

This commit is contained in:
Aminda Suomalainen 2024-06-26 18:05:34 +03:00
parent 96d96479f7
commit 038ea8cc9b
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
2 changed files with 26 additions and 26 deletions

View File

@ -578,19 +578,19 @@ alias chattr="\chattr -V"
alias chmod="\chmod --verbose"
# https://github.com/nodejs/corepack/blob/v0.28.2/README.md#corepack-enable--name
#if hash corepack 2> /dev/null; then
# alias yarn="corepack yarn"
# alias yarnpkg="corepack yarnpkg"
# alias pnpm="corepack pnpm"
# alias pnpx="corepack pnpx"
# alias npm="corepack npm"
# alias npx="corepack npx"
# if ! hash prettier 2> /dev/null; then
# alias prettier="pnpm exec prettier --cache --ignore-unknown"
# fi
#else
# echo "WARNING! corepack is not installed."
#fi
if hash corepack 2> /dev/null; then
alias yarn="corepack yarn"
alias yarnpkg="corepack yarnpkg"
alias pnpm="corepack pnpm"
alias pnpx="corepack pnpx"
alias npm="corepack npm"
alias npx="corepack npx"
if ! hash prettier 2> /dev/null; then
alias prettier="pnpm exec prettier --cache --ignore-unknown"
fi
else
echo "WARNING! corepack is not installed."
fi
# https://pnpm.io/installation#using-a-shorter-alias
alias pn="corepack pnpm"

View File

@ -568,19 +568,19 @@ alias chattr="\chattr -V"
alias chmod="\chmod --verbose"
# https://github.com/nodejs/corepack/blob/v0.28.2/README.md#corepack-enable--name
#if hash corepack 2>/dev/null; then
# alias yarn="corepack yarn"
# alias yarnpkg="corepack yarnpkg"
# alias pnpm="corepack pnpm"
# alias pnpx="corepack pnpx"
# alias npm="corepack npm"
# alias npx="corepack npx"
# if ! hash prettier 2>/dev/null; then
# alias prettier="pnpm exec prettier --cache --ignore-unknown"
# fi
#else
# echo "WARNING! corepack is not installed."
#fi
if hash corepack 2>/dev/null; then
alias yarn="corepack yarn"
alias yarnpkg="corepack yarnpkg"
alias pnpm="corepack pnpm"
alias pnpx="corepack pnpx"
alias npm="corepack npm"
alias npx="corepack npx"
if ! hash prettier 2>/dev/null; then
alias prettier="pnpm exec prettier --cache --ignore-unknown"
fi
else
echo "WARNING! corepack is not installed."
fi
# https://pnpm.io/installation#using-a-shorter-alias
alias pn="corepack pnpm"