The command line is a powerful tool, but navigating its labyrinth of commands can be time-consuming and frustrating. Enter Tbmk, a simple yet effective tool that revolutionizes your command-line experience by allowing you to bookmark frequently used commands, making them easily accessible and saving you valuable time.
Persistence: Unlike autocompletion, Tbmk stores your bookmarked commands permanently, preventing them from disappearing when you clear your command history.Flexibility: Unlike aliases, Tbmk allows you to organize and manage your commands with descriptive titles, providing greater clarity and control.
Download the Tarball: Head over to the project's release page and download the Linux AMD64 tarball file.Extract the Files: Navigate to your downloads folder and extract the contents of the tarball using the command:tar -xvf tbmk-linux-amd64.tar.xz --one-top-level=tbmk/
Move to the Directory: Change directory to the extracted folder:cd tbmk/
Run the Installation Script: Execute the installation script using the relative path:./install
Reload Your Shell: Apply the changes by reloading your shell configuration file:source ~/.bashrc #Bash source ~/.zshrc #Zsh source ~/.config/fish/config.fish #Fish
Type Your Command: Enter the command you want to bookmark in your terminal.Press Ctrl+t: This shortcut triggers the bookmarking process.Enter a Title: A prompt will appear, asking you to provide a descriptive title for your bookmark.Save Your Bookmark: Press Enter to save your new bookmark.
Press Ctrl+Space: This opens the Tbmk prompt, displaying a list of your bookmarked commands.Filter or Navigate: You can filter your commands by typing a few characters of the title or command, or navigate using the Up and Down arrow keys.Execute: Press Enter to execute the selected command.
Deleting Bookmarks: Press Ctrl+Space to open the prompt, navigate to the bookmark you want to delete, press Ctrl+d, and confirm by pressing 'y'.Updating Bookmarks: Simply bookmark a new command with the same title as an existing bookmark to overwrite it.Sharing and Backing Up: Your bookmarked commands are stored in the ~/.tbmk directory. Take backups to prevent data loss and share them with others for collaborative command-line efficiency.
Navigate to the Installation Directory: Go to the directory where you extracted the tarball.Run the Uninstall Script: Execute the uninstall script:./uninstall
Restart Your Terminal: Ensure your terminal session is restarted for the changes to take effect.
Increased Efficiency: Eliminate repetitive typing and time-consuming searches, streamlining your workflow.Enhanced Organization: Categorize your commands with descriptive titles for easy access and management.Improved Consistency: Avoid errors by ensuring you're using the correct command every time.Collaborative Power: Share your bookmarks with colleagues, empowering team productivity.
0 comments:
Post a Comment