Skip to content

nomander17/miku-shell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Miku Shell (msh)

A lightweight, Hatsune Miku-themed shell for UNIX-like systems.

Features

  • Colorful prompt with home directory
  • Built-in commands: cd, help, exit, echo, hi, mikumode
  • Command history and tab completions support using GNU Readline
  • Commands piping with |
  • Random Miku quotes (togglable with mikumode)
  • Proper handling of quoted arguments

Building

  1. Install the required dependencies:
# Debian/Ubuntu
sudo apt-get install build-essential libreadline-dev

# Fedora/RHEL
sudo dnf install gcc readline-devel

# Arch Linux
sudo pacman -S gcc readline
  1. Clone the repository:
git clone https://github.com/nomander17/miku-shell.git msh
cd msh
  1. Compile the shell:
make

Usage

Run the shell:

./msh

Built-in commands

  • cd [directory]: Change directory
  • help: Display help information
  • exit: Exit the shell
  • echo [-n] [text]: Display text (-n suppresses newline)
  • hi: Get a greeting from Miku
  • mikumode: Toggle Miku quotes on/off

Shell history

Command history is saved to ~/.msh_history and is loaded when the shell starts.

License

This project is licensed under the GPLv3.

Acknowledgments

  • Hatsune Miku~
  • Stephen Brennan's tutorial - Write a Shell in C, which served as the base of the project. This project builds upon it, adding new builtins, Miku-theme, command history, etc.

About

A simple Miku-themed shell written in C

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published