可以制作一个脚本商店吗?
Tofloor
poster avatar
lookfor
deepin
2020-10-18 15:30
Author
本帖最后由 lookfor 于 2020-10-24 15:34 编辑

收录普通人经常用到的脚本。油猴脚本是浏览器上的,不能在本地执行

关于脚本:您为日常生活编写的最有用的脚本是什么?

Reply Favorite View the author
All Replies
不避风云
deepin
2020-10-18 16:06
#1
目的是什么?要解决什么问题,如果是比较简单的脚本,一条命令的话大家都会直接写的,用不到商店。如果稍微复杂一点的话,可能就会在软件的使用说明里面做介绍。

Homebrew 类似的软件安装工具。解决其他问题,可能就是直接上搜索引擎。
Reply View the author
lookfor
deepin
2020-10-18 16:21
#2
本帖最后由 lookfor 于 2020-10-18 08:31 编辑
https://bbs.deepin.org/post/203979
目的是什么?要解决什么问题,如果是比较简单的脚本,一条命令的话大家都会直接写的,用不到商店。如果稍微 ...

收录在一起方便管理和维护,网上找的代码很容易过时

例子:
https://bbs.deepin.org/post/198617

你觉得最实用的linux脚本哪些?
Reply View the author
SamLukeYes
deepin
2020-10-18 16:30
#3
https://bbs.deepin.org/post/203979
收录在一起方便管理和维护,网上找的代码很容易过时

例子:

贴在 wiki 上就好,要用的时候就复制粘贴
Reply View the author
jingle
deepin
2020-10-18 17:14
#4
欢迎建立wiki词条
Reply View the author
Ziggy
deepin
2020-10-18 20:08
#5
星火商店有插件板块
Reply View the author
ghostry
deepin
2020-10-18 20:27
#6
可以放到gitee上面.
Reply View the author
Cris.Q
deepin
2020-10-19 03:19
#7
星火商店我觉得可以做
Reply View the author
神末shenmo
Moderator
Spark-App
2020-10-19 05:00
#8
Reply View the author
lookfor
deepin
2020-10-20 23:58
#9
https://bbs.deepin.org/post/203979
https://gitee.com/rocket049/super-run

这个教程不够多,
而且没说明怎么下载(是给普通人用的吗?)
Reply View the author
神末shenmo
Moderator
Spark-App
2020-10-21 00:30
#10
lookfor 发表于 2020-10-20 15:58
这个教程不够多,
而且没说明怎么下载(是给普通人用的吗?)

发行版那里有deb包
Reply View the author
lookfor
deepin
2020-10-24 23:38
#11
向上移N个目录,则可以键入up N:
可以通过将以下内容放入您的bashrc中

  1. function up( )
  2. {
  3. LIMIT=$1
  4. P=$PWD
  5. for ((i=1; i <= LIMIT; i++))
  6. do
  7.     P=$P/..
  8. done
  9. cd $P
  10. export MPWD=$P
  11. }

  12. function back( )
  13. {
  14. LIMIT=$1
  15. P=$MPWD
  16. for ((i=1; i <= LIMIT; i++))
  17. do
  18.     P=${P%/..}
  19. done
  20. cd $P
  21. export MPWD=$P
  22. }
Copy the Code

Reply View the author