shellmarks是一个ansible模块,用于将书签设置到常用目录,如shellmarks和bashmarks所做的工具。
shellmarks的Python项目详细描述
ansible模块外壳标记
ansible-module-shellmarks
是一个ansible
模块将书签设置为常用目录,如工具
shellmarks/
bashmarks做。
shellmarks和 bashmarks是 允许您使用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