吾爱破解 - 52pojie.cn

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 73|回复: 0
收起左侧

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

[复制链接]
searchpojie 发表于 2024-10-30 20:46
本帖最后由 searchpojie 于 2024-10-30 20:50 编辑

根据关键字过滤已经保存的路径

根据关键字过滤已经保存的路径

jm . 保存当前路径

jm . 保存当前路径


https://gitee.com/osboy/jump_or_open
截屏2024-10-30 20.49.06.png
直接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 /[SOME_PATH], jo /[SOME_PATH], "jump to" or "open" /SOME_PATH
j [LINENUM], jo [LINENUM], jd [LINENUM], "jump to" or "open"
or "del" the LINENUM matched path in ~/.marks file
j [KYEWORD], jo [KEYWORD], jd [KEYWORD], 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 /[SOME_PATH], add the path to ~/.marks file
jo . , open current path "."

发帖前要善用论坛搜索功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。

您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则

返回列表

RSS订阅|小黑屋|处罚记录|联系我们|吾爱破解 - LCG - LSG ( 京ICP备16042023号 | 京公网安备 11010502030087号 )

GMT+8, 2024-11-24 11:49

Powered by Discuz!

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表