-
Notifications
You must be signed in to change notification settings - Fork 0
Config
Avindra Goolcharan edited this page Jan 24, 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
Hooks exist for Bash and Fish.
The contract to use the program is to install a small hook in your shell profile. Here are the usage patterns for various shells:
- Traditional shells:
eval "$(dirp hook)"
- It has been tested to work with: Bash, BusyBox
- Fish shell:
dirp hook fish | source
ℹ️ The Bash hook may be compatible with additional shells like ZSH, but this hasn't been tested. Dash is currently not supported.
ℹ️ In Bash and other POSIX shells, some systems choose to map dir
to ls
as a convenience for DOS users; in these cases, the DOS alias is removed and replaced with the dir
entrypoint for this program.