下载源码
git clone https://github.com/lxbwolf/bashmarks.git
把bashmarks.sh
复制到~/bin/
添加环境变量
在环境变量文件里, 添加
. ~/bin/bashmarks.sh
相关命令
s <bookmark_name> - Saves the current directory as "bookmark_name"
g <bookmark_name> - Goes (cd) to the directory associated with "bookmark_name"
p <bookmark_name> - Prints the directory associated with "bookmark_name"
d <bookmark_name> - Deletes the bookmark
l - Lists all available bookmarks