帮你保持历史操作,跳回到你经常使用的目录。 下面是我的配置文件里脚本: # USAGE: # s bookmarkname – saves the curr dir as bookmarkname # g bookmarkname – jumps to the that bookmark # g b[TAB] – tab completion is available # l – list all bookmarks # save current directory to bookmarks touch ~/.sdirs function s { cat ~/.sdir