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

21 lines
430 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
yarn install
elif [ $char = "d" ]; then
yarn dev
elif [ $char = "b" ]; then
yarn build
elif [ $char = "a" ]; then
yarn add
elif [ $char = "u" ]; then
yarn upgrade
2020-12-30 18:12:23 +01:00
elif [ $char = "t" ]; then
yarn test
elif [ $char = "c" ]; then
yarn coverage
2020-11-07 14:03:30 +01:00
fi
done
}