-
Notifications
You must be signed in to change notification settings - Fork 0
Install
Megaf edited this page Sep 28, 2022
·
2 revisions
article up to date up to libsay version 1.3-202209.28.193000
- In this instruction we are going to install the libsay to the directory ~/.local/lib.
- All commands are run with user privs.
- Simply copy each
command
and paste it on your terminal. - The .bashrc file is a list of commands your system runs when you login.
Instructions
- To help us out, let's set some variables first.
-
install_dir="$HOME/.local/lib"
# Install location for libsay. -
download_dir="/tmp"
# Download destination. -
download_url="https://github.com/Megaf/libsay/releases/latest/download/libsay"
# libsay's url. - Download the latest release for libsay.
wget "$download_url" -O "$download_dir/libsay"
- Create a directory where libsay will be installed to:
mkdir -p "$install_dir"
- Copy libsay to your libs directory.
cp "$download_dir/libsay" "$install_dir"/
- "Install" libsay to your .bashrc file.
- Make a backup of the .bashrc file.
cp -a ~/.bashrc ~/.bashrc.backup
- Add source libsay to the end of .bashrc.
echo "source $install_dir/libsay" >> ~/.bashrc
- Check Usage in the wiki to learn how to use libsay!
Instructions
- In this instruction we are going to install the libsay to the directory Your_Project/libs.
- All commands are run with user privs.
- Simply copy each
command
and paste it on your terminal. - Please replace Your_Projects with the full "PATH" of your Project.
- To help us out, let's set some variables first.
-
install_dir="/Your_Projects/libs"
# Install location for libsay. -
download_url="https://github.com/Megaf/libsay/releases/latest/download/libsay"
# libsay's url. - Create a directory where libsay will be installed to:
mkdir -p "$install_dir"
- Download the latest release for libsay to your projects libs directory.
wget "$download_url" -O "$install_dir/libsay"
- Add libsay to your your project.
- Add the following source line to the beginning of your projects.
source ./libs/libsay
- Check Usage in the wiki to learn how to use libsay!
You are all set! Now you can use libsay's commands and functions!
For more information Check the Wiki!