Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/th92rodr/gosh
UNIX Shell
https://github.com/th92rodr/gosh
shell unix
Last synced: about 1 month ago
JSON representation
UNIX Shell
- Host: GitHub
- URL: https://github.com/th92rodr/gosh
- Owner: th92rodr
- Created: 2020-12-01T12:21:17.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-02-18T18:39:18.000Z (over 3 years ago)
- Last Synced: 2023-03-06T21:41:56.415Z (over 1 year ago)
- Topics: shell, unix
- Language: Go
- Homepage:
- Size: 67.4 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GOSH
The following line operators are supported:
| Operator | Action |
| -------- | -------------------------------------------------------------------------------- |
| && | AND Operator (executes the following command if the previous one was successful) |
| \|\| | OR Operator (executes the following command if the previous one failed) |
| ; | Semicolon Operator (always executes the following command) |
| & | Execute command in background |
| $? | Get last process' exit code |--
The following line editing commands are supported:
| Keystroke | Action |
| --------------------- | --------------------------------------------------- |
| Ctrl-A, Home | Move cursor to beginning of line |
| Ctrl-E, End | Move cursor to end of line |
| Ctrl-B, Left | Move cursor one character left |
| Ctrl-F, Right | Move cursor one character right |
| Ctrl-Left, Alt-B | Move cursor to previous word |
| Ctrl-Right, Alt-F | Move cursor to following word |
| Ctrl-T | Transpose previous character with current character |
| Delete | Delete current character |
| Alt-D | Delete next word |
| Ctrl-W, Alt-BackSpace | Delete current word |
| Ctrl-U | Delete from start of line to cursor |
| Ctrl-K | Delete from cursor to end of line |
| Ctrl-H, BackSpace | Delete character before cursor |
| Ctrl-L | Clear screen |
| Ctrl-D | End of File - if line is empty quits application |
| Ctrl-C | Reset input (create new empty prompt) |
| Ctrl-P, Up | Previous command from history |
| Ctrl-N, Down | Next command from history |
| Ctrl-R | Reverse search in history |
| Tab | Word completion |
| Winch Signal | Window change |--
Additional commands also supported:
| Command | Action |
| ---------------------- | ----------------------------------------------- |
| cd | Go to system root directory |
| cd \ | Go to required directory |
| cd - | Go to last registered directory |
| echo $\ | Print environment variable value |
| fg | Bring the last background process to foreground |