mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-25 12:49:26 +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"
|
alias chmod="\chmod --verbose"
|
||||||
|
|
||||||
# https://github.com/nodejs/corepack/blob/v0.28.2/README.md#corepack-enable--name
|
# https://github.com/nodejs/corepack/blob/v0.28.2/README.md#corepack-enable--name
|
||||||
#if hash corepack 2> /dev/null; then
|
if hash corepack 2> /dev/null; then
|
||||||
# alias yarn="corepack yarn"
|
alias yarn="corepack yarn"
|
||||||
# alias yarnpkg="corepack yarnpkg"
|
alias yarnpkg="corepack yarnpkg"
|
||||||
# alias pnpm="corepack pnpm"
|
alias pnpm="corepack pnpm"
|
||||||
# alias pnpx="corepack pnpx"
|
alias pnpx="corepack pnpx"
|
||||||
# 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="pnpm exec prettier --cache --ignore-unknown"
|
||||||
# fi
|
fi
|
||||||
#else
|
else
|
||||||
# echo "WARNING! corepack is not installed."
|
echo "WARNING! corepack is not installed."
|
||||||
#fi
|
fi
|
||||||
|
|
||||||
# https://pnpm.io/installation#using-a-shorter-alias
|
# https://pnpm.io/installation#using-a-shorter-alias
|
||||||
alias pn="corepack pnpm"
|
alias pn="corepack pnpm"
|
||||||
|
26
rc/zshrc
26
rc/zshrc
@ -568,19 +568,19 @@ alias chattr="\chattr -V"
|
|||||||
alias chmod="\chmod --verbose"
|
alias chmod="\chmod --verbose"
|
||||||
|
|
||||||
# https://github.com/nodejs/corepack/blob/v0.28.2/README.md#corepack-enable--name
|
# https://github.com/nodejs/corepack/blob/v0.28.2/README.md#corepack-enable--name
|
||||||
#if hash corepack 2>/dev/null; then
|
if hash corepack 2>/dev/null; then
|
||||||
# alias yarn="corepack yarn"
|
alias yarn="corepack yarn"
|
||||||
# alias yarnpkg="corepack yarnpkg"
|
alias yarnpkg="corepack yarnpkg"
|
||||||
# alias pnpm="corepack pnpm"
|
alias pnpm="corepack pnpm"
|
||||||
# alias pnpx="corepack pnpx"
|
alias pnpx="corepack pnpx"
|
||||||
# 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="pnpm exec prettier --cache --ignore-unknown"
|
||||||
# fi
|
fi
|
||||||
#else
|
else
|
||||||
# echo "WARNING! corepack is not installed."
|
echo "WARNING! corepack is not installed."
|
||||||
#fi
|
fi
|
||||||
|
|
||||||
# https://pnpm.io/installation#using-a-shorter-alias
|
# https://pnpm.io/installation#using-a-shorter-alias
|
||||||
alias pn="corepack pnpm"
|
alias pn="corepack pnpm"
|
||||||
|
Loading…
Reference in New Issue
Block a user