OkShell is a command line interface specially designed for human beings. With OkShell, you use your own personalized human language command to perform any task that can be performed using a Shell command.
For example, in a Linux system, if you would like to replace the string "Alice" with "Bob" in all .txt files, you don't need to remember the following (inhuman) Shell command
$ find . -type f -name \*.txt -exec sed -i 's/Alice/Bob/g' {} \;
instead you can just do
$ ok replace Alice with Bob in all txt files
The software is simply an executable named "ok". It doesn't utilize any sophisticated machine learning techniques therefore it works well. It's fully personalized. It's cross-platform. Most importantly, it's simple to use. Below is a link to a presentation that explains what OkShell is all about.
For questions and feedbacks, please email [email protected].
The installation of OkShell is currently in "pro mode", i.e., you need to compile it from the source code and know what you are doing. It will become more convenient for general users in future releases.
Currently supported operating systems: Most Linux distributions, e.g., Ubuntu, RedHat, etc.
To install:
-
Download source code of OkShell by (if you have Git installed)
$ git clone https://github.com/larryyueli/okshell.git
or download the zip file or tar.gz file.
-
Make sure you have the following packages installed on your computer.
- g++ version 4.6 or above (recommanded package: build-essential) - libboost-dev - libboost-serialization-dev - libboost-regex-dev - libboost-filesystem-dev - libboost-system-dev - libreadline-dev
-
Under
okshell
directory, runmake
-
Run
sudo make install
You could be in one of two modes when using OkShell: NORMAL mode or CONFIG mode.
When you are in NORMAL mode, you just want to run some command (90% of use
cases). Just type ok
followed by whatever you want to do. For example,
$ ok replace "good" with "great" in txt files
When you are in CONFIG mode occasionally, you want to run some configuration
tasks. Just type ok
twice, followed by some configuration command. For
example
$ ok ok cloud off
To see a list of the configuration commands, do
$ ok ok help
To see this manual, do
$ ok help
Copyright (c) 2013 Larry Yueli Zhang