sunnypp / my_setup

Automation for machines that I use

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

my_setup Automation Script (evolving!)

Quick start (for my future reference?)

Automatic setup 🤖

./my_setup automata

Help 💬

./my_setup -h

Philosophy

  • ♻️ Make almost every call to be idempotent
  • 🏃 Ease setup with a call to ./my_setup automata
  • 🌐 Aim to make it Cross-Platform by listing functionalities of installed packages / tools instead of the names (unless the software is itself Cross-Platform)
  • 🤔 Rather copy-and-paste in "neighbourhood" as executing replacing in Vim is quite fast when refactoring is needed

New commands introduced to lib/utils.sh

check_no_cmd    Exit if the command is already available in the current shell.
manual_todo     Append text to `<repo-root>/todo.md`. 
                If it is already appended before, the item is moved to the end of file instead.
not_implemented Print out warning text that the function being called is not implemented yet.

TODO

  • Find way to show subcommand in subcommand help, i.e. not my_setup [...options] but my_setup subcmd [...options]
  • Remove unnecessary shellcheck disables for my setup

Other Details

Please read the Medium article (member-only) by Shinichi Okada and his original repo (please check the forked link).

About

Automation for machines that I use

License:MIT License


Languages

Language:Shell 57.6%Language:Lua 24.9%Language:Vim Script 17.5%