Fast directory navigation plugin for fish shell.
wd (warp directory) lets you quickly navigate through your filesystem with custom directory shortcuts so called warp points. Warping to a path pushes the path on the directory stack. Navigation back can be achieved with either "popd" or "wd ..".
- fish v2.3
- cat
- sed
With Oh My Fish:
$ omf install wd
With fisherman:
$ fisher add fischerling/plugin-wd
$ wd [option] <warp point>
$ wd [option] <warp point>/some/path/
$ wd [option] [command] [warp point]
# remember the path to your cool project
cd path/to/your/cool/project
wd add cool-project
# warp to your cool project from anywhere
wd cool-project
.. Pop the last directory from the directory stack
add <point> Adds the current working directory to your warp points
add! <point> Overwrites existing warp point
rm <point> Removes the given warp point
show Print warp points to current directory
show <point> Print path to given warp point
list Print all stored warp points
warppoints Print names of all stored warp points
warppoints-file Print path where the warppoints are stored
ls <point> Show files from given warp point
path <point> Show the path to given warp point
clean Remove warp points to nonexistent directories
clean! Same as clean without confirmation
-v | --version Print version
-c | --config Specify and set config file
-q | --quiet Suppress all output
-f | --force Equivalent to '!' with add and clean
help Shows the help text
If wd hasn't already found a warpfile and stored its path in the universal fish variable __wd_warprc
it will
search at those locations in the following order:
- $WARP_FILE (environment variable)
- $xdg_data_dir/wd/warppoints (for xdg_data_dir in $XDG_DATA_DIRS)
- $XDG_DATA_HOME/wd/warppoints
- $HOME/.local/share/wd/warppoints
- $HOME/.warprc (deprecated)
If it can find a warppoint file it will silently create a new one in 3. or 4. according to the XDG Base Directory standard.
MIT © fischerling et al