为每个人提供简单的iterm2配置文件!
miproman的Python项目详细描述
- [信息商业声音] “嘿,孩子们!你厌倦了维护那些讨厌的iterm2档案吗?
好吧,不要再看下去了,因为我们只有miproman这个东西。
使用miproman添加新配置文件很容易。
$ add_profile server007 --tags "Super Secret Server"
用法
usage: add_profile [-h][-c COMMAND][-t [TAGS [TAGS ...]]][-r STOP | START,STOP][-p FILE][-n TEMPLATE_NAME][-v][--version] servers [servers ...] MiProMan - iTerm2 Profiles Manager for Humans! positional arguments: servers Servers to create profiles for. Can use the form server{0:02d} with the range flag to add a range of servers. Skips if server already exists. optional arguments: -h, --help show this help message and exit -c COMMAND, --command COMMAND The command to run for each profile. Use {0} to refernce the server name in the command. Default: ssh {0} -t [TAGS [TAGS ...]], --tags [TAGS [TAGS ...]] Tags for the profiles. -r STOP | START,STOP, --range STOP | START,STOP If server uses range format add profiles for specified range. Can be provided as a single number or comma separated pair. If single value range starts from 1. Ex. server{0:02d} -r 4=> server01 - server04 Ex. server{0:02d} -r 10,20 => server10 - server20 -p FILE, --profile FILE iTerm2 profile plist. Default: $HOME/Library/Preferences/com.googlecode.iterm2.plist -n TEMPLATE_NAME, --template TEMPLATE_NAME iTerm2 profile name to be used as base template for new server entries. Template is required to add new profiles. Default: Default -v, --verbose Increase output verbosity. --version show program's version number and exit
安装
要安装miproman,只需:
$ pip install miproman
或者,如果您自己选择构建它:
$ python setup.py install
功能
- 从控制台添加新配置文件
- 支持服务器和命令的python字符串替换格式
- 在用户配置中定义默认设置以避免键入oll选项