https://github.com/kyu28/posix-sh-utils
Some POSIX Shell implemented utilities
https://github.com/kyu28/posix-sh-utils
file-manager linux posix-sh posix-shell shell terminal
Last synced: 3 months ago
JSON representation
Some POSIX Shell implemented utilities
- Host: GitHub
- URL: https://github.com/kyu28/posix-sh-utils
- Owner: kyu28
- Created: 2022-08-06T07:02:04.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-22T11:05:10.000Z (about 2 years ago)
- Last Synced: 2025-01-04T15:55:05.824Z (5 months ago)
- Topics: file-manager, linux, posix-sh, posix-shell, shell, terminal
- Language: Shell
- Homepage:
- Size: 64.5 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# posix-sh-tools
Some POSIX Shell implemented tools## Why POSIX Shell?
No compilation, maximum portability, almost no dependency.
POSIX Shell can run on almost every device such as your old PC, your unrooted Android phone and even your router.## sys settings
Some scripts to change system settings## status
+ status.sh
A status bar script, design for suckless's dwm
Usage: `status.sh &`
+ statuscli.sh
Same status bar as above, design for tty
Usage: `statuscli.sh &`## webserver.sh
A script that start a webserver with file index, requires netcat or socat## fm.sh - file manager
A simple file manager script, inspired by nnn and fffUsage:
`fm.sh [-a]`
- Navigate - up and down key
- Go to parent directory - left key
- Go into highlighted directory - right key
- Delete highlighted file or directory - x
- Rename or move highlighted file or directory - r
- Make a new directory - m
- Mark or unmark a file or directory - space
- Copy marked files and directories to current directory - p
- Move marked files and directories to current directory - v
- Quit fm - q
- To show hidden objects, use option `-a`Tips:
To enable cd on exit, add
```
fm() {
/bin/fm.sh "$@" # path to your fm.sh
cd $(cat $HOME/.fm_path)
rm $HOME/.fm_path # Optional, delete path file
}
```
to your ~/.bashrc or ~/.zshrc fileKnown issue:
- Careful with filenames contain `*`## vi.sh - line oriented vi
A simple vi editor implementationUsage:
`vi.sh FILENAME`
- At normal mode
- Delete one line - D
- Clear one line and enter insert mode - S
- New line below cursor and enter insert mode - o
- New line above cursor and enter insert mode - O
- Enter command mode - :
- Use direction keys or hjkl to navigate
- At insert mode
- Return to normal mode - Esc
- At command mode
- Return to normal mode - Esc
- Give up all the changes and reopen file - :e
- Write changes - :w
- Quit svi without saving - :q
- Write changes and quit svi - :wq