This is a terminal program used to mamke switching between commonly used directories easy!
# clone repo
git clone https://github.com/GComputeNerd/bmark.git
cd bmark
# To run the program
source bmark
# If you don't source it the directory won't change.If you want to use the program from anywhere, add an alias to ur ~/.bashrc or ~/.bash_aliases file.
# ~/.bash_aliases
alias bmark="source ~/path/to/file/bmark"Now you can run the command by typing bmark in terminal.
bmark searches the bmark/links folder for soft links. To make a soft link go to the bmark/links folder and run the following command.
ln -s ~/path/to/folder NameOfLinkSo to make a soft link for the Downloads folder, do
ln -s ~/Downloads DownloadsNow if we run the bmark command, we should see.
If we want to group links into folders (example :- we want to have a Programming category, which has links to your C, or lua folder).
Then we have to do the following
cd links
mkdir Programming
cd Programming
ln -s ~/Programming/C C
ln -s ~/Programming/lua Luaso now our links folder should be like this.
bmark/links/
|----Downloads
|----Programming
|----C
|----Lua
Now, if we run bmark, we should see.
and if we click on Programming, we should see.
Now you should be able to make your own set of bookmarks, you can nest folders if you want to as well.
An additional note, say you want to have a Programming bookmark that links to ~/Programming then you can do the following.
cd links
cd Programming
ln -s ~/Programming .mainNow if we run bmark and go to programming, we can see a root option, clicking this will take us to ~/Programming
bmark can also be run without going to the TUI. Say you just want to go to the lua folder directly without opening bmark, clicking on Programming, and clicking on Lua. Then we can also go to the lua folder by typing the name of the soft link directly like this.
bmark LuaWhen we type this, bmark will scan the bmark/links folder, and subfolders searching for soft links with the name Lua, if one is found, it'll directly go there.
There is also one more added functionality to bmark, if you run
bmark rit will source your ~/.bashrc



