ZLang is a successor of eBash2 with greater compatibility and extended features. It is a shell script extension runtime which has more user-friendly commands and utilities.
Default installation: (Default location, latest)
curl -Ls https://raw.githubusercontent.com/410-dev/ZLang/main/installer.zsh | zsh
Installer with options
curl -Ls https://raw.githubusercontent.com/410-dev/ZLang/main/installer.zsh -o ./installer.sh
chmod +x ./installer.sh
zsh ./installer.sh <version> <location> [--bash] [--profile]
rm -rf ./installer.sh
Modify the options in line 3 to change installation.
Options:
--bash: Add link to .bashrc. Useful if using bash on linux.
--profile: Add link to .bash_profile. Useful if using bash on macOS. Requires --bash option.
If you are writing a script, you MUST prepend this code to the script file in order to fully load ZLang library.
#!/bin/zsh
source $ZLANG_HOME/zlang-linker $ZLANG_HOME
ZLang script requires library to fully function. However, if developers use ZLang2Native, then the ZLang script will be able to be run on machines that do not have ZLang library installed.
Type the following command:
zlang-uninstall
To see selectable versions:
zlang-select
To change version:
zlang-select <version>
To remove "Warning: ZLang is intended to run in zsh environment." message, prepend export ZLANG_SUPPRESS_WARNING="YES"
to either .bashrc or .bash_profile.