The fastest way to
cd
into your folder bookmarks that you create on your file manager.
cd
# interactive mode:
bcd
# non interactive `cd` if only one match is present.
bcd [search]
Up
/ Down
to select a target bookmark.Make sure you have curl
installed on your system
curl -sL https://github.com/omranjamal/bookmark-cd/releases/latest/download/install.sh -o - | sh -
# Create installation directory
mkdir -p ~/.local/share/omranjamal/bookmark-cd
# Download the binary (check releases page for all available binaries)
curl -L -o ~/.local/share/omranjamal/bookmark-cd/bookmark-cd https://github.com/omranjamal/bookmark-cd/releases/latest/download/bookmark-cd_v1.1.0_amd64
# Add execution permissions
chmod +x ~/.local/share/omranjamal/bookmark-cd/bookmark-cd
# Add to shell
~/.local/share/omranjamal/bookmark-cd/bookmark-cd --install ~/.bashrc
You can either change the function name in your
~/.bashrc
/ ~/.zshrc
file from bcd
to something
else.
OR, you could add the alias in Step 4 from above by passing as the last argument.
~/.local/share/omranjamal/bookmark-cd/bookmark-cd --install ~/.bashrc bookcd
bookcd
being the different alias that you want.
git clone git@github.com:omranjamal/bookmark-cd.git
cd ./bookmark-cd
go get
go run main.go
MIT