Skip to content

Instantly share code, notes, and snippets.

@carolineartz
Created January 28, 2016 20:16
Show Gist options
  • Save carolineartz/ec474d27853ee6f6c748 to your computer and use it in GitHub Desktop.
Save carolineartz/ec474d27853ee6f6c748 to your computer and use it in GitHub Desktop.
powder down without password

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"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment