magicant / yash

Yet another shell
http://magicant.github.io/yash/
GNU General Public License v2.0
346 stars 30 forks source link
c posix-sh shell

Yash: yet another shell

https://magicant.github.io/yash/ This README is also available in 日本語.

Yash, yet another shell, is a POSIX-compliant command line shell written in C99 (ISO/IEC 9899:1999). Yash is intended to be the most POSIX-compliant shell in the world while supporting features for daily interactive and scripting use. Notable features are:

Yash can be modified/redistributed under the terms of the GNU General Public License (Version 2) but the use of this program is without any warranty. See the COPYING file for the full text of GPL.

Yash is maintained on GitHub, but was formerly on OSDN.

Current Development Status

Yash now fully supports POSIX.1-2008 (IEEE Std 1003.1, 2016 Edition) except for the limitations listed below.

Yash is stable. A maintenance update is released every three months or so. For the change history, see the NEWS file.

Requirements

Yash is supposed to build and run on any POSIX.1-2001 environment with the Software Development Utilities and the C-Language Development Utilities options.

Currently, yash is mainly tested on Fedora, macOS, and Cygwin.

Installation

See the INSTALL file to see how to build and install yash.

After installation, the manual can be viewed by

$ man yash

The manual is also available online at https://magicant.github.io/yash/doc/.

Basic Configuration

Below is a description of basic configuration that you might want to see after installation to get started with yash. For configuration details, see the manual.

Initialization scripts

When yash is started as a login shell, it reads $XDG_CONFIG_HOME/yash/profile or ~/.yash_profile as a fallback. This file is a shell script in which you define environment variables using the export command.

When yash is started for an interactive use, it reads $XDG_CONFIG_HOME/yash/rc or ~/.yashrc (after reading $XDG_CONFIG_HOME/yash/profile if it is a login shell also). In this file, you make other configurations such as aliases, prompt strings, key bindings for command line editing, and command-not-found handler. Use the share/initialization/sample file as a template for your $XDG_CONFIG_HOME/yash/rc.

Making yash your login shell

In many Unix-like OSes, a shell must be listed in /etc/shells to be set as a login shell. Edit this file and ensure that the path to yash is written in the file.

Then, run the chsh command in the terminal and follow instructions from the command. Depending on your system, you may have to use another command to change the login shell. See documentation on your system.

Implementation Notes

Known Issues

Contributions

Comments, suggestions, and bug reports are welcome at:

If you are interested in translation, please refer to TRANSLATING.md.


Watanabe, Yuki magicant@wonderwand.net