Thanks to visit codestin.com
Credit goes to github.com

Skip to content

SharktasticA/shorkdir

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

shorkdir

A lightweight Linux terminal-based file browser. It is designed to provide simple directory browsing and navigation, and provided file is installed, it can also identify and describe a selected file. It is primarily written for use with SHORK Operating Systems like SHORK 486, designed to be minimal and not taxing on 486-era hardware, and is statically linked. But it should work on modern Linux distributions just fine.

Known issues

shorkdir can produce flickering on some hardware and terminal emulators. This is usually due to its simplistic design and how it 'redraws' the screen after each update. I am working on optimising this to reduce it as much as possible. :)

Building

Requirements

You just need a C compiler (tested with GCC with either glibc or musl).

Compilation

Simply run make to compile shorkdir.

Installation

Run make install to install to /usr/bin (you may need sudo if not installing as root). If you want to install it elsewhere, you can override the install location prefix like make PREFIX=/usr/local install.

Running

Simply run shorkdir to use. You are technically running a bootstrap shell script, required for changing the current directory once the program exits. shorkdir-exec is binary itself, which can be run directly if changing directory upon exiting is not desired.

Arguments

  • -h, --help: Shows help information and exits
  • -nc, --no-col: Disables all coloured output

Key binds

KeyFunctionKeyFunctionKeyFunction
H/A/left arrowUp directoryJ/S/down arrowMove cursor downK/W/up arrowMove cursor up
L/D/right arrowOpen directory/fileiInspect (if `file` installed).Toggle hidden directories/files
hShow help screenqQuit

Directory entry types

TypeMeaningTypeMeaningTypeMeaning
dDirectoryfRegular file (non-executable)xRegular file (executable)
bBlock devicecCharacter devicelSymbolic link
sUNIX domain socket|Named pipe (FIFO)?Unknown

Screenshots

Browsing root directory (w/ colour enabled) Browsing root directory (w/o colour enabled)
Browsing /usr/bin Help screen
Open screen Inspect screen (text file example)
Inspect screen (executable example) Inspect screen (symbolic link example)

About

A lightweight Linux terminal-based file browser

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors