Put this in your shell startup file (.zshrc, etc). the \r
is required after your password to execute the carriage return
function powder_down() {
expect <<EOF
spawn /Users/<yourname>/.rbenv/shims/powder down
expect {
"Password:" { send "<password here>\r"; exp_continue }
eof
}
EOF
}
Then, update any aliases to use powder_down
instead of powder down
:
alias pd="powder_down"