mirror of
https://github.com/SangeloDev/niminit.git
synced 2024-11-09 10:52:38 +00:00
22 lines
No EOL
704 B
Bash
Executable file
22 lines
No EOL
704 B
Bash
Executable file
#!/bin/bash
|
|
# Install Script for niminit v1.0
|
|
# (c) Sangelo, 2023
|
|
# Read LICENSE for more info
|
|
|
|
# Compile program
|
|
nim c -o:bin/niminit niminit
|
|
|
|
# Create local bin folder if it doesn't exist
|
|
mkdir -p $HOME/.local/bin
|
|
|
|
# Copy binary to local bin folder
|
|
cp bin/niminit $HOME/.local/bin/niminit
|
|
|
|
# Create config directory & copy files
|
|
mkdir -p $HOME/.config/niminit
|
|
cp config/* $HOME/.config/niminit
|
|
|
|
# Print info message to export local bin if not already
|
|
echo -e "\n"
|
|
echo -e "\e[92m>>> \e[0mDone! If you haven't already added your local bin folder to your PATH, you can do so by adding the following line to your .profile, .bashrc or .zshrc"
|
|
echo -e "\e[1m\e[91mexport \e[0m\e[33m\$HOME./local/bin:\$PATH" |