Skip to content

mfaerevaag/wd-c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wd

wd (warp directory) lets you jump to custom directories in your terminal, without using cd. Why? Because cd seems inefficient when the folder is frequently visited or has a long path.

NOTE: This is a port written in c, which can be used in all shells using wrappers. If you're using oh-my-zsh, check out the original wd.

Install

To install properly you need to

  1. compile and install binary (/usr/bin/_wd)
  2. copy and source the wanted wrapper function (wd)

1. Binary (_wd)

Manual

Checkout / download latest release

# make
# make install

Arch (AUR)

# yaourt -S wd-git

2. Wrapper (wd)

Link (or copy) wrapper of your desired shell somewhere convenient. There are wrappers for sh, zsh and fish, but the sh should conquer all, no matter shell.

Example for bash using the .sh wrapper:

# ln -s /usr/share/wd/wd.sh ~/bin/wd.sh
# echo "source ~/bin/wd.sh" >> ~/.bashrc

Usage

See original README.

Note that argument syntax has changed to standard getopt_long (prefixed with single og double dash, e.g. -a / --add), and that some functions are not yet implemented (see list below).

Contribution

Use the test suite with

# make debug
# make test

Not yet implemented:

  • Warp directly to subdirectory of point
  • Overwriting (force flag)
  • Clean rc-file
  • Tab completion (bash is implemented)

About

🚀 Jump to custom directories in terminal

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published