Init
This commit is contained in:
1
zsh/functions.zsh
Normal file
1
zsh/functions.zsh
Normal file
@ -0,0 +1 @@
|
||||
source ./y.sh;
|
17
zsh/y.zsh
Normal file
17
zsh/y.zsh
Normal file
@ -0,0 +1,17 @@
|
||||
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
|
||||
}
|
Reference in New Issue
Block a user