-
Notifications
You must be signed in to change notification settings - Fork 8
Home
to - A simple shell script for bookmarking file system locations with advanced tab completion
In ~/.bashrc
(or ~/.bash_profile
for certain distributions)
source /absolute/path/to.sh
Press <TAB>
to autocomplete arguments. If there are multiple possible arguments, no completion will be made, but pressing <TAB>
a second time will display possible completions.
Tip: You can speed up completion suggestions by adding to your ~/.inputrc
file:
set show-all-if-unmodified on
to immediately show possible arguments when no completion is made (saving one <TAB>
)
In ~/.zshrc
source /absolute/path/to.sh
<TAB>
cycles through possible completions on zsh. Use <RIGHT ARROW>
or <SHIFT+TAB>
to select a completion and continue expanding subdirectories with <TAB>
.
to is developed and tested on the Linux kernel with GNU software. The latest stable commit on the master branch should always support this environment.
The following GNU tools are used:
- ln
- readlink
- rm
- mkdir
- echo
- find
- dirname
- basename
- sed
Mac OSX is based off the POSIX specification with BSD software. The latest stable commit on the master branch usually has been tested and should support this environment. You will need to have tree installed (available on homebrew with brew install tree
).
Not tested. However, things should be similar enough to OSX that if the script does not function with native tools, identical behaviour could be expected if one simply installed the GNU version of the tools listed above.