dotfiles

personal dotfiles
git clone anongit@rnpnr.xyz:dotfiles.git
Log | Files | Refs | Feed | Submodules

confirm (142B)


      1 #!/bin/sh
      2 
      3 # confirms an action with dmenu before executing
      4 
      5 prompt=$1
      6 shift
      7 
      8 [ "$(printf "no\nyes" | dmenu -i -p "$prompt")" = "yes" ] && $@