Skip to content

daghlar/NullShell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌌 NullShell - Professional Modular Shell

NullShell is a modern, professional-grade shell built in C, designed with a focus on modularity, advanced scripting, and premium user experience. It draws inspiration from Zsh and Fish while maintaining a lightweight and extremely customizable architecture.

✨ Key Features

  • 🚀 Modular Architecture: Expand functionality via dynamic .so plugins at runtime.
  • 🎨 Premium UI/UX:
    • Real-time syntax highlighting (Fish-style existence checks).
    • Dynamic RPROMPT (Right-hand prompt) for status and exit codes.
    • Custom themes (neon, ocean, monokrome) with live switching.
  • 📜 Advanced Scripting:
    • Full support for if, while, and for loop control structures.
    • Arrays: Native support for array variables arr=(a b c) and indexing ${arr[0]}.
    • Recursive globbing with ** support.
  • ⌨️ Pro-grade Line Editing:
    • Rich Tab Completion for commands, files, keywords, and local variables.
    • Standard keybindings (Ctrl+A, Ctrl+E, Alt+F, Alt+B, Ctrl+U, Ctrl+K).
    • Reverse incremental search (Ctrl+R).
  • 🛡️ Robust Job Control: Professional terminal management and background task handling.

🛠️ Installation

Prerequisites

  • GCC or Clang
  • Make
  • standard C libraries (libc, libdl)

Building from Source

git clone https://github.com/user/NullShell.git
cd NullShell
make
./nullshell

Installation

sudo make install

🔌 Plugin System

NullShell can be extended at runtime. To load a plugin:

plugin load /path/to/plugin.so

Create your own plugins using the registration API:

#include "builtins.h"
int nullshell_plugin_init() {
    builtin_register("mycmd", my_func);
    return 0;
}

🎨 Theming

Switch themes on the fly for an immediate aesthetic change:

theme ocean
theme neon

📄 License

MIT License. Feel free to fork and extend!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors