add gt.sh file path to your ~/.bash_profile or ~/.bashrc file
reload your profile or restart your terminal
用例:
gt -a <bookmark_name> - 保存当前目录的标签为 给定的bookmark_name
gt -d <bookmark_name> - 删除给定的标签
gt -l - 列除所有标签
gt -h - 帮助信息
gt <bookmark_name> - 跳转到指定的标签目录
例子:
123456789
current_user:~$ cd sourcecode/study/
current_user:~/sourcecode/study$ gt -a study
current_user:~/sourcecode/study$ cd ~
current_user:~$ gt study
current_user:~/sourcecode/study$ gt -l
goAgent=/Users/twer/sourcecode/goagent/goagent-goagent-9c1edd3/local
octopress=/Users/twer/sourcecode/octopress
goShell=/Users/twer/sourcecode/shell/goShell
study=/Users/twer/sourcecode/study
12345
current_user:~/sourcecode/study$ gt -d study
current_user:~/sourcecode/study$ gt -l
goAgent=/Users/twer/sourcecode/goagent/goagent-goagent-9c1edd3/local
octopress=/Users/twer/sourcecode/octopress
goShell=/Users/twer/sourcecode/shell/goShell
1234567
current_user:~/sourcecode/study$ gt -h
Usage:
-a <bookmark_name> - Saves the current directory as "bookmark_name"-d <bookmark_name> - Deletes the bookmark
-l - Lists all available bookmarks
-h(-help,--help) - Lists usage
<bookmark_name> - Jump to the bookmark