{bash,zsh}rc: aliases for pnpm, prettier, jekyll

This commit is contained in:
Aminda Suomalainen 2024-05-29 15:37:28 +03:00
parent 6896d9d096
commit 065cb49ab2
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
2 changed files with 42 additions and 2 deletions

View File

@ -575,7 +575,27 @@ alias rm="\rm --verbose"
alias ln="\ln --verbose"
alias mkdir="\mkdir --verbose"
alias chattr="\chattr -V"
alias chmod=--"\chmod --verbose"
alias chmod="\chmod --verbose"
# pnpm does less duplicating around
if hash pnpm 2>/dev/null; then
alias npm=pnpm
alias npmx=pnpx
alias npx=pnpx
alias pnpmx=pnpx
if ! hash prettier 2>/dev/null; then
alias prettier="pnpx prettier"
fi
fi
# github-pages etc.
if hash bundle 2>/dev/null; then
alias jekyll="bundle exec jekyll"
fi
# Helpful tool for increasing permissions on Android, for me mainly unattended
# installations.
alias shizuku="adb shell sh /storage/emulated/0/Android/data/moe.shizuku.privileged.api/start.sh"
# Allow custom aliases to be put in .aliases or .bash_aliases .

View File

@ -565,7 +565,27 @@ alias rm="\rm --verbose"
alias ln="\ln --verbose"
alias mkdir="\mkdir --verbose"
alias chattr="\chattr -V"
alias chmod=--"\chmod --verbose"
alias chmod="\chmod --verbose"
# pnpm does less duplicating around
if hash pnpm 2>/dev/null; then
alias npm=pnpm
alias npmx=pnpx
alias npx=pnpx
alias pnpmx=pnpx
if ! hash prettier 2>/dev/null; then
alias prettier="pnpx prettier"
fi
fi
# github-pages etc.
if hash bundle 2>/dev/null; then
alias jekyll="bundle exec jekyll"
fi
# Helpful tool for increasing permissions on Android, for me mainly unattended
# installations.
alias shizuku="adb shell sh /storage/emulated/0/Android/data/moe.shizuku.privileged.api/start.sh"
# Allow custom aliases to be put in .aliases or .zsh_aliases .