Here's my .zshrc:
alias inst="adb install -r -d"
notify() {
start=$(date +%s)
"$@"
notify-send "\"$(echo $@)\" took $(($(date +%s) - start)) seconds to finish"
}
When I run the command notify inst app.apk, I get an error:
notify:2: command not found: inst
0.00s user 0.00s system 0% cpu 0.001 total
Can anyone shed some light on why this doesn't work, and hopefully a way to make it work?