-
Notifications
You must be signed in to change notification settings - Fork 0
Shell
Avindra Goolcharan edited this page Jan 28, 2021
·
8 revisions
To use dirp
, you need to hook in your shell profile. This is also the only time users should ever directly reference the dirp
binary.
Here are usage patterns for different shells:
- Traditional shells:
eval "$(dirp hook)"
- Compatible: ✅ Bash, BusyBox
- Not-Compat: ❌ Dash
- Unk-Compat: ❓ ZSH
- Fish shell:
dirp hook fish | source
- Compatible: ✅ fish >= 3.1.2
- Plan 9 shells:
eval `{dirp hook rc}
- Compatible: ✅ rc
- Not-Compat: ❌ es
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.