Running Sidef without installation
It is also possible to run Sidef without having to install it. If you're using a Unix-like OS, all you need to do is to execute the following commands:
$ wget 'https://github.com/trizen/sidef/archive/master.zip' -O 'master.zip'
$ unzip 'master.zip'
$ cd 'sidef-master/bin/'
$ ./sidef -v
Those commands will download and unpack the latest version of Sidef and will execute the bin/sidef
script which will print out the current version of the language.
To execute a Sidef script, run:
$ ./sidef ../scripts/sierpinski_triangle.sf
You can, also, add the following alias to your ~/.bashrc
or ~/.zshrc
:
alias sidef="/path/to/bin/sidef"