anishathalye / dotbot

A tool that bootstraps your dotfiles ⚡️
MIT License
6.9k stars 287 forks source link

`if` with shell function satisfying interface #333

Open pafi-code opened 1 year ago

pafi-code commented 1 year ago

Is there the possibility to make dot files optional via user input? If I'm right currently there is no option to ask for user input in the if flag right? If yes please let me know how to do it! :) Would be cool if one could put a function for the if flag, e.g.

-link:
  ~/.something:
    path: configs/somewhere
    if: 'checkUserInput() {
          # get user input
          # if input yes return true
          # else false
        }'