A Nim initialising script, because that definitely does not exist already. Fully customizable!
Find a file
2023-03-07 20:20:21 +01:00
config Started work on config implementation 2023-03-07 20:20:21 +01:00
src Started work on config implementation 2023-03-07 20:20:21 +01:00
.gitignore Initial Commit 2023-03-06 17:08:41 +01:00
install.sh Started work on config implementation 2023-03-07 20:20:21 +01:00
LICENSE Initial Commit 2023-03-06 17:08:41 +01:00
niminit.nimble Restructured nim project properly 2023-03-06 23:44:59 +01:00
README.md Update install script to handle .config 2023-03-06 19:53:08 +01:00

niminit

Simple program that copies files from ~/.config/niminit to .vscode in your current working directory and optionally initialises a Git repo.

Written in nim!

Currently written to work for Linux, not tested on MacOS, Windows is unsupported for now (feel free to make a pull-request :D).

Table of contents

Install using script

Install using one-liner:

# Clone GitHub repo, compile and install niminit
git clone https://github.com/SangeloDev/niminit && cd niminit && chmod +x install.sh && ./install.sh

If you've cloned the repo already, you can also directly run install.sh:

$ ./install.sh

Compile & install manually

To compile niminit, run the following command after cloning:

nim c -o:bin/niminit niminit

This will create a directory called bin/ inside the repo. You can copy the binary into your path from there.

You'll also find two template files that can be used to initialise a nim project for VSCode inside config in this repo. You can copy these to ~/.config/niminit or create your own.

Update

  1. Open your terminal and cd into the repository.
  2. Run git pull to update the local repo.
  3. Run ./install.sh again and enjoy!

Usage

To use niminit, run it inside the folder you'd like to initialise, after creating ~/.config/niminit/ and adding the files you'd like to copy there.

Optionally, you can pass the -g flag to also create a git repository.

Uninstall

niminit is self-contained, you can just remove the binary from ~/.local/bin. niminit also uses ~/.config/niminit, so remove that directory and you're done!


Back to the top