A sounding shell experiment

Houkime b6cd54a4ec add video link преди 2 години
.gitlab e92269fbd5 adding syntax highlighting for emacs преди 4 години
benches dc3f40f7d9 chore: update dependencies and switch to rust 1.36.0 преди 4 години
ci 7abe992f1c Fix tests for performance improvements преди 5 години
debian 7feacbe3a5 :package: Update debian changelog преди 5 години
examples b6cd29182e ci: Test rather than check for redox преди 4 години
fuzz 62f552aa51 Debian packaging support преди 6 години
manual df99347767 fix(manual): disable linkcheck to fix deploy преди 3 години
members c85d2ef479 fix(clippy): define and fix clippy lints, add documentation+license преди 3 години
sh-interrupt f8f85c3833 fix: Bring back redox compilation преди 4 години
src 4e2023bda6 proto-modification преди 2 години
testing 1d47baee45 Fix symlink преди 7 години
tests c85d2ef479 fix(clippy): define and fix clippy lints, add documentation+license преди 3 години
.envrc ca069ed1c1 If the source-sh argument is a file, execute it instead of a literal script преди 4 години
.gitignore efbc06c92c Make sure the manual page about builtins is kept updated преди 5 години
.gitlab-ci.yml a7c0222946 fix(CI): deploy: add utils, change cache name преди 3 години
CONTRIBUTING.md e8e9b0fde0 fix: Update location of tests script in CONTRIBUTING.md. Add missing period to help.out. преди 4 години
Cargo.lock 63dc0c39d2 Fix issues getting home directory преди 2 години
Cargo.toml 4e2023bda6 proto-modification преди 2 години
LICENSE cc423e811d Update ion to 1.0.0 after significant work by mmstick to complete syntax elements преди 7 години
Makefile c727cb7eee bump msrv to 1.53.0, update rustfmt преди 3 години
README.md b6cd54a4ec add video link преди 2 години
build.rs baf5549eb8 Clippy and fmt преди 5 години
clippy.toml c85d2ef479 fix(clippy): define and fix clippy lints, add documentation+license преди 3 години
redox_linker 934e9a0022 :package: Update debian packaging преди 5 години
rustfmt.toml c727cb7eee bump msrv to 1.53.0, update rustfmt преди 3 години
shell.nix ca2bcc4cd4 Update deps (for nix) преди 4 години
test.ogg 4e2023bda6 proto-modification преди 2 години

README.md

About this experimental branch

This is a (likely) never-to-be-upstreamed modification prototype that allows shell to make (futuristic) sounds on various actions (currently on completion). To play with it (no serious use supported):

git clone https://notabug.org/Houkime/ion-sound
cd ion-sound
cargo run --release

At the moment the startup is tied to the directory with the sound (but once started shell can go anywhere). Terrible! Raw! But i am not sure if i want to continue with ion or use nsh as a base. Ion moves and jitters too much, and the whole idea of having sounds in a shell is to make it a pleasant chilly experience. Dynamic sound synthesis without any files can prove cool too.

Here is a video demo of the shell at work. Behind the scenes the shell uses Kira game audio library.

Below starts original README

Introduction

Ion is a modern system shell that features a simple, yet powerful, syntax. It is written entirely in Rust, which greatly increases the overall quality and security of the shell. It also offers a level of performance that exceeds that of Dash, when taking advantage of Ion's features. While it is developed alongside, and primarily for, RedoxOS, it is a fully capable on other *nix platforms.

Ion Shell

MIT licensed crates.io Documentation

Ion is still a WIP, and both its syntax and rules are subject to change over time. It is still quite a ways from becoming stabilized, but we are getting very close. Changes to the syntax at this time are likely to be minimal.

Ion Specification

Ion has a RFC process for language proposals. Ion's formal specification is located within the rfcs branch. The RFC process is still in the early stages of development, so much of the current and future implementation ideas have yet to be written into the specification.

Ion Manual

The Ion manual online is generated automatically on each commit via mdBook and hosted on Redox OS's website.

Building the manual for local reference

Sources for the manual are located in the manual directory.

You can build the manual using

make manual
mdbook build -d ../public manual

Ion library example

See the examples folder and the Parallelion project

Packages

Pop!_OS / Ubuntu

The following PPA supports the 18.04 (bionic) and 19.04 (disco) releases. Bionic builds were made using the Pop_OS PPA's rustc 1.39.0 package.

sudo add-apt-repository ppa:mmstick76/ion-shell

Developer set up

Those who are developing software with Rust should install the Rustup toolchain manager. After installing rustup, run rustup override set 1.39.0 to set your Rust toolchain to the version that Ion is targeting at the moment. To build for Redox OS, rustup override set nightly is required to build the Redox dependencies.

Build dependencies

Please ensure that both cargo and rustc 1.39.0 or higher is installed for your system. Release tarballs have not been made yet due to Ion being incomplete in a few remaining areas.

Compile instructions for distribution

git clone https://gitlab.redox-os.org/redox-os/ion/
cd ion
RUSTUP=0 make # By default RUSTUP equals 1, which is for developmental purposes
sudo make install prefix=/usr
sudo make update-shells prefix=/usr

To compile in DEBUG mode, pass DEBUG=1 as an argument to make

Vim/NeoVim Syntax Highlighting Plugin

For vim/nvim users there is an officially-supported syntax highlighting plugin.

Plugin 'vmchale/ion-vim'

Vim Syntax Highlighting

Emacs Syntax Highlighting Plugin

For emacs users there is a kindly-supported syntax highlighting plugin.

(add-to-list 'load-path  (expand-file-name "/path/to/ion-mode"))
(require 'ion-mode)
(autoload 'ion-mode (locate-library "ion-mode") "Ion majore mode" t)
(add-to-list 'auto-mode-alist '("\\.ion\\'" . ion-mode))
(add-to-list 'auto-mode-alist '("/ion/initrc" . ion-mode))

Emacs Syntax Highlighting