.dotfiles/configs/zsh/functions/y.zsh

21 lines
427 B
Bash
Raw Normal View History

2020-11-07 14:03:30 +01:00
function y(){
word=$(echo "$1" | fold -w 1)
for char in $(echo $word)
do
if [ $char = "i" ]; then
2021-04-23 15:27:39 +02:00
pnpm i -r
2020-11-07 14:03:30 +01:00
elif [ $char = "d" ]; then
2021-04-23 15:27:39 +02:00
pnpm dev
2020-11-07 14:03:30 +01:00
elif [ $char = "b" ]; then
2021-04-23 15:27:39 +02:00
pnpm build
2020-11-07 14:03:30 +01:00
elif [ $char = "a" ]; then
2021-04-23 15:27:39 +02:00
pnpm add
2020-11-07 14:03:30 +01:00
elif [ $char = "u" ]; then
2021-04-23 15:27:39 +02:00
pnpm upgrade
2020-12-30 18:12:23 +01:00
elif [ $char = "t" ]; then
2021-04-23 15:27:39 +02:00
pnpm test
2020-12-30 18:12:23 +01:00
elif [ $char = "c" ]; then
2021-04-23 15:27:39 +02:00
pnpm coverage
2020-11-07 14:03:30 +01:00
fi
done
}