searchpojie 发表于 2024-10-30 20:46

[原创]可以记录当前目录 并 方便跳转的shell脚本

本帖最后由 searchpojie 于 2024-10-30 20:50 编辑



https://gitee.com/osboy/jump_or_open

直接source mp.sh 就可以加载


Usage:
"jump to" with "j" or "open with finder/explorer" with "jo" to the specified line number
or "choice list number" with keyword in the current ~/.marks file.
"mark" current path into ~/.marks file with "jm".
j, jo, jd, jm, show marks file list with line number
j -h, jo -h, jd -h, jm -h, show help
j /, jo /, "jump to" or "open" /SOME_PATH
j , jo , jd , "jump to" or "open"
or "del" the LINENUM matched path in ~/.marks file
j , jo , jd , grep -i KEYWORD ~/.marks,
list all matched record, show the "choice list number" in first column.
You can input "choice list number" at first column to "jump to" or "open" the specified path.
If just match one path, "jump to" or "open" or "del" it directly.
j -, jump to previous folder
jd . , delete current path in ~/.marks file
jm . , mark current path append into ~/.marks file
jm /, add the path to ~/.marks file
jo . , open current path "."
页: [1]
查看完整版本: [原创]可以记录当前目录 并 方便跳转的shell脚本