boxxy
v0.8.5
BoxXy (Case-Ensentitive)는 Linux 애플리케이션을 잘못 행동하고 Symlinks없이 파일과 디렉토리를 올바른 위치에 넣도록 강요하는 도구입니다!
BoxXy는 Amyware Discord 서버의 일부입니다.
내가 만든 것을 좋아한다면 Patreon에서 나를 지원하는 것을 고려하십시오.
리눅스 전용! 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는 HomeDir를 스캔하여 자동으로 규칙을 제안 할 수 있습니다!0.6.0
: boxxy는 project-local boxxy.yaml
파일을 사용할 수 있으며 .env
파일을로드 할 수 있습니다!0.6.1
: BoxXy 규칙은 ENV Vars를 주입 할 수 있습니다.0.7.2
: boxxy는 --daemon
플래그로 boxxed 프로세스를 배경으로 포크 할 수 있습니다.0.8.0
: boxxy는 --rule
명령 줄에서 규칙을 전달하고 --no-config
로 구성 파일로드를 비활성화 할 수 있습니다.0.8.2
: Appimages를 올바르게 실행하는 방법을 설명하십시오.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
필요하며 모든 분포에는 기본적으로 포함되지 않습니다. 설치하려면 :
알파인 :
$ apk add shadow-uidmap
데비안 / 우분투 :
$ 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-appimage