boxxy
v0.8.5
BoxXy(case敏感)是拳击行为不当的Linux应用程序的工具,并迫使他们将文件和目录放在正确的位置,而无需符号链接!
BoxXy是Amyware Discord服务器的一部分。
如果您喜欢我所做的,请考虑在Patreon上支持我:
仅限linux! BoxXy使用Linux名称空间来实现其功能。
例如,考虑tmux。它希望将其配置放入~/.tmux.conf
中。使用BoxXy,您可以将其配置放入~/.config/tmux/tmux.conf
中:
# ~/.config/boxxy/boxxy.yaml
rules :
- name : " redirect tmux config from ~/.tmux.conf to ~/.config/tmux/tmux.conf "
target : " ~/.tmux.conf "
rewrite : " ~/.config/tmux/tmux.conf "
mode : " file "
由于健康原因,我正在休息一下开源项目。 PRS仍将被接受,并且仍将查看问题,但是何时发生这种情况并没有承诺。
我最近不得不使用AWS CLI。它想要将数据保存在~/.aws
中,但是我不希望它只是在我的$HOME
上弄乱我的$。 Boxxy让我强迫它将其数据放在一个不错的位置。
0.5.0
:BoxXy可以扫描您的归宿以自动为您建议规则!0.6.0
:BoxXy可以使用Project-Local boxxy.yaml
文件,并且可以为您加载.env
文件!0.6.1
:Boxxy规则可以注入env vars:0.7.2
:BoxXy可以用--daemon
标志将框后的进程分配到背景中。0.8.0
:boxxy可以使用--rule
在命令行中传递规则,并使用--no-config
禁用加载配置文件。0.8.2
:说明如何正确运行适应性:git:(mistress) | ▶ cat ~ /.config/boxxy/boxxy.yaml
rules:
- name: " Store AWS CLI config in ~/.config/aws "
target: " ~/.aws "
rewrite: " ~/.config/aws "
git:(mistress) | ▶ boxxy aws configure
INFO boxxy > loaded 1 rules
INFO boxxy::enclosure > applying rule ' Store AWS CLI config in ~/.config/aws '
INFO boxxy::enclosure > redirect: ~ /.aws - > ~ /.config/aws
INFO boxxy::enclosure > boxed " aws " ♥
AWS Access Key ID [ **************** d]: a
AWS Secret Access Key [ **************** c]: b
Default region name [b]: c
Default output format [a]: d
git:(mistress) | ▶ ls ~ /.aws
git:(mistress) | ▶ ls ~ /.config/aws
config credentials
git:(mistress) | ▶ cat ~ /.config/aws/config
[default]
region = c
output = d
git:(mistress) | ▶
alias aws="boxxy aws"
(重复其他工具)BoxXy需要newuidmap
才能函数,默认情况下并未包含在所有分布中。安装:
Alpine:
$ apk add shadow-uidmap
Debian / Ubuntu:
$ apt install uidmap
Rhel / Fedora:
$ yum install shadow-utils
boxxy配置文件属于~/.config/boxxy/boxxy.yaml
。如果不存在,将为您创建一个空的。
rules :
# The name of the rule. User-friendly name for your reference
- name : " redirect aws-cli from ~/.aws to ~/.config/aws "
# The target of the rule, ie the file/directory that will be shadowed by the
# rewrite.
target : " ~/.aws "
# The rewrite of the rule, ie the file/directory that will be used instead of
# the target.
rewrite : " ~/.config/aws "
- name : " use different k8s configs when in ~/Projects/my-cool-startup "
target : " ~/.kube/config "
rewrite : " ~/Projects/my-cool-startup/.kube/config "
# The context for the rule. Any paths listed in the context are paths where
# this rule will apply. If no context is specified, the rule applies
# globally.
context :
- " ~/Projects/my-cool-startup "
# The mode of this rule, either `directory` or `file`. `directory` is the
# default. Must be specified for the correct behaviour when the target is a
# file. Required because the target file/directory may not exist yet.
mode : " file "
# The list of commands that this rule applies to. If no commands are
# specified, the rule applies to all programs run with boxxy.
only :
- " kubectl "
rules :
- name : " any valid string " # required
target : " path " # required
rewrite : " path " # required
context : # optional
- " path "
- " path "
mode : " directory | file " # optional
only : # optional
- " binary name "
- " binary name "
env : # optional
KEY : " value "
pre-commit install
cargo build
cargo run -- ls -lah ~/.config
/
与TMP目录/
rofixtures/helloworld-appimage-x86_84.AppImage
:https://github.com/clonedrepos/hello-world-pappimage