shellmarks是一个ansible模块,用于将书签设置到常用目录,如shellmarks和bashmarks所做的工具。

shellmarks的Python项目详细描述


Build Status

ansible模块外壳标记

ansible-module-shellmarks是一个ansible 模块将书签设置为常用目录,如工具 shellmarks/ bashmarks做。

shellmarksbashmarks是 允许您使用tab保存并跳转到常用目录 完成。

这两种工具都将书签存储在名为~/.sdirs的文本文件中。这个 模块能够将书签写入此文件。

export DIR_shell_scripts_SHELL_GITHUB="$HOME/shell-scripts"
export DIR_shellmarks_module_ansible="$HOME/ansible-module-shellmarks"
export DIR_skeleton_SHELL_GITHUB="$HOME/skeleton.sh"
> SHELLMARKS    (shellmarks.py)

  shellmarks https://github.com/Bilalh/shellmarks bashmarks https://github.com/huyng/bashmarks
  are shell scripts that allows you to save and jump to commonly used directories with tab
  completion.

Options (= is mandatory):

- cleanup
        Delete bookmarks of nonexistent directories.
        [Default: False]
- mark
        Name of the bookmark.
        [Default: (null)]
- path
        Full path to the directory.
        [Default: (null)]
- replace_home
        Replace home directory with $HOME variable.
        [Default: True]
- sdirs
        The path to the file where the bookmarks are stored.
        [Default: ~/.sdirs]
- sorted
        Sort entries in the bookmark file.
        [Default: True]
- state
        State of the mark.
        (Choices: present, absent)[Default: present]
EXAMPLES:
# Bookmark the ansible configuration directory
- shellmarks:
    mark: ansible
    path: /etc/ansible
    state: present

# Delete bookmark of the ansible configuration directory
- shellmarks:
    mark: ansible
    path: /etc/ansible
    state: absent

# Replace home directory with $HOME variable
- shellmarks:
    replace_home: true

# Sort entries in the bookmark file
- shellmarks:
    sorted: true

# Delete bookmarks of no longer existing directories
- shellmarks:
    cleanup: true


MAINTAINERS: Josef Friedrich (@Josef-Friedrich)

METADATA:
	Status: ['preview']
	Supported_by: community

开发

测试功能

/usr/local/src/ansible/hacking/test-module -m shellmarks.py -a

测试文档

source /usr/local/src/ansible/hacking/env-setup
/usr/local/src/ansible/test/sanity/validate-modules/validate-modules --arg-spec --warnings shellmarks.py

生成文档

ansible-doc -M . shellmarks

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
junit有没有办法在Java中重新初始化静态类?   在浏览器中点击应用程序时java Play框架挂起   文件Java错误中的NullPointerException   使用Java中的SNMP查找网络中计算机的登录名   java包装服务器引导程序已弃用,有什么替代方案?   当客户在等待理发时,java信号量值是否存在问题?   java如何使用JavaMail仅下载特定类型的附件   如何在java中将十进制转换为十六进制   java Slick2D粒子系统不会生成粒子   java检测更改事件来自何处   将Java集合类型参数类设置为数组   java如何从eclipse导出为可运行JAR文件?   java EntityManager对象未注入Glassfish和Spring   swing从actionPerformed和actionListener Java返回字符串   java在给定另一个等价键对象的情况下获取映射项的当前键   无论输入如何,java网络都会产生相同的输出