-
Notifications
You must be signed in to change notification settings - Fork 0
Config
Avindra Goolcharan edited this page Jan 25, 2021
·
20 revisions
The config is expected at ~/.config/dir/list
.
Users can run dir cfg
to edit the file after it's been created.
A sample with the intended usage/spec is available below:
# Downloads (disk)|/mnt/hdd300/Downloads <-- comments are supported (MUST be 1st char in line)
PXE Server|/mnt/tr200/ISOS
Videos|/mnt/space/Videos
Games|/mnt/space/Games
shared memory|/dev/shm
temp|/tmp
The contract to use the program is to install a small hook in your shell profile. It is also the only way users should ever directly reference the dirp
binary.
Here are the usage patterns for various shells:
- Traditional shells:
eval "$(dirp hook)"
- Compatible: Bash, BusyBox
- Not-Compat: Dash
- Unk-Compat: ZSH
- Fish shell:
dirp hook fish | source
- tested/created with fish 3.1.2
ℹ️ In some pre-configured shells, you might find an existing dir
alias to ls
as a convenience for DOS users. The hook will detect such entries and replace them with the entrypoints for dirp
instead.