.dotfiles/configs/zsh/functions/run.zsh

8 lines
115 B
Bash
Raw Normal View History

2022-03-01 23:25:44 +01:00
function run(){
2022-03-14 19:21:46 +01:00
if [[ -f "package.json" ]]; then
2022-03-01 23:25:44 +01:00
pnpm $1
2022-03-14 19:21:46 +01:00
elif [[ -f "Makefile" ]]; then
2022-03-01 23:25:44 +01:00
make $1
fi
}