mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-10 02:29:22 +01:00
{bash,zsh}rc: actually restore corepack aliases as both is good
This commit is contained in:
parent
96d96479f7
commit
038ea8cc9b
26
rc/bashrc
26
rc/bashrc
@ -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"
|
||||
|
26
rc/zshrc
26
rc/zshrc
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user