Skip to content

fcanlnony/fshell2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

126 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

fshell is a simple shell write in C. The goal is to become a shell starter example.

Feature

  • |, &&
  • built-in command
  • init file support

builtin command

  • list alias - list all alias
  • cd [dir] - switch dir_
    cd .... - return previous folder
  • alias [alias name] [original name] - alias a to b
  • unalias [alias name] ... - unalias a , ... can replace with your alias variable
  • set [name] [value] - set env variable [name] = [value]
  • unset [name] ... - unset a , ... can replace with your env variable
  • print [name] ... - print a env value and alias value
  • load [file] ... - load a configuration file with built-in commands

init file

  • FSHELL_PIPE_NUM - the number of one-dimensional arrays of two-dimensional arrays to be used for pipe Example: set FSHELL_PIPE_NUM 20 (can be left out if you don't know)
  • built-in command support (set, unset, alias, unalias, load)

Warning

  • The file is located at ${HOME}/.fshellrc

About

A simple shell example

Resources

License

Stars

Watchers

Forks

Packages

No packages published