-
Notifications
You must be signed in to change notification settings - Fork 0
Config
Avindra Goolcharan edited this page Jan 23, 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|/tmpHooks 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:
- Fish shell:
dirp hook | source - Traditional shells:
eval "$(dirp hook bash)"
ℹ️ The Bash hook is probably compatible with a number of other shells such as Dash and ZSH, but this hasn't been tested.
ℹ️ 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.