Skip to content

410-dev/ZLang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ZLang

Excel a shell script - Improve, simplify, extend shell script.

Overview

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.

Installation

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


Native Translator (WIP)

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.



Uninstalling

Type the following command:

zlang-uninstall

Changing runtime version (If installed multiple versions)

To see selectable versions:

zlang-select

To change version:

zlang-select <version>

Disabling non-zsh environment warning

To remove "Warning: ZLang is intended to run in zsh environment." message, prepend export ZLANG_SUPPRESS_WARNING="YES" to either .bashrc or .bash_profile.

Documentation

Go to documentation

About

Excel a shell script

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages