Multipurpose shell scripts and dotfiles
Go to file
2024-12-26 00:49:56 +08:00
dotfiles wip 2024-12-02 16:12:18 +08:00
helpers wip 2024-12-02 16:12:18 +08:00
install st4 4189 2024-12-26 00:49:56 +08:00
packs Revert "Descriptions parsing improved" (c1150af9) + php tools fixes 2022-12-28 15:20:25 +08:00
tools wip 2024-12-02 16:12:18 +08:00
uninstall wip 2024-12-02 16:12:18 +08:00
upgrade Makefile generation improved 2022-08-26 08:25:55 +08:00
.editorconfig editorconfig 2022-08-19 20:57:45 +08:00
.gitignore inotifywait-cp 2022-09-28 07:41:07 +08:00
gen-makefile fixes in makefile generation 2023-04-12 19:05:12 +08:00
helpers.sh wip 2024-12-02 16:12:18 +08:00
LICENSE Small fixes + WTFPLv2 2022-07-04 23:53:39 +08:00
Makefile wip 2024-12-02 16:12:18 +08:00
README.md wip 2024-12-02 16:12:18 +08:00
TODO.md wip 2024-12-02 16:12:18 +08:00

My shell environment

make-ready bunch of scripts for easily (de)installation of different software and bunch of useful handy functions for custom scripting.

Requirements

  • Ubuntu >= 20.04 (not tested with version < 20)
  • bash, zsh or other sh-compatible shell
  • make (optional but recommended)
  • wget (required for some scripts)
  • git (required for some scripts)

If some dependecies are missed for some of these scripts it is enougth to run ./install/apt in most cases, otherwise script will suggest (or even install) them.

Usage

# with git
git clone git@git.axenov.dev:anthony/my-env.git --depth=1 --single-branch

# without git
wget -qO - https://git.axenov.dev/anthony/my-env/archive/master.tar.gz | tar -zxf -

# get full list of `make` goals
cd my-env && make

How to add my script?

  1. Create a new shell script in ./install, ./upgrade or ./uninstall directory.
    At the beggining of a file you must write these two lines:
    #!/bin/bash
    ##makedesc: Your description for Makefile
    
  2. Make this script executable, e.g.:
    sudo chmod a+x ./install/myscript
    
  3. Test your script
  4. Run make self to generate new ./Makefile

How to create a pack?

You can create new file inside ./packs dir.

Syntax is same as classic makefile. It is important to add a comment with short description:

##mypack1: Pack description
mypack1: goal1 goal2 goalX ...
   ...

##mypackX: Pack description
mypackX: goalA goalB
   @cp file1 file2
   ...
...

where:

  • mypack* is the pack name of your choice
  • goal* are script names in ./install

License

WTFPLv2 but other licences are also possible.