.dotfiles/zsh/functions/y.zsh
2020-11-07 15:58:15 +01:00

17 lines
332 B
Bash

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
fi
done
}