Skip to content

Instantly share code, notes, and snippets.

View shubhamsc's full-sized avatar

Subham Singh shubhamsc

  • ThoughtWorks
  • India
View GitHub Profile
#!/usr/bin/env bash
# Ask for the administrator password upfront.
sudo -v
# Keep-alive: update existing `sudo` time stamp until the script has finished.
while true; do sudo -nv true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
read waste
#Ask for name to use in oh my zsh