This commit is contained in:
thek4n 2024-11-14 15:40:45 +03:00
parent cb67414281
commit 40c6cbce70
2 changed files with 10 additions and 9 deletions

View File

@ -36,7 +36,8 @@ Config files for:
<img src=".assets/prompt.png" alt="Prompt">
</p>
You can add your files to the `~/.config/zsh/zshrc.d` directory for zsh so that they automatically run in ascending order when you open a terminal.\
You can add your files to the `~/.config/zsh/zshrc.d` directory for zsh so
that they automatically run in ascending order when you open a terminal.\
Example:\
`~/.config/zsh/zshrc.d/01_hello.sh`
```sh

16
install
View File

@ -211,7 +211,7 @@ cmd_unlink() (
)
cmd_no_target() (
_die "TARGET not exists" 1
_die "TARGET '${1}' not exists" 1
)
cmd_list() (
@ -226,14 +226,14 @@ target_exists() (
cmd_install() (
for target in "$@"
do
if target_exists "${target}"; then
SANDBOX_PATH="$(mktemp -td "${USER:-user}.dotfiles_XXXXXXX")"
export SANDBOX_PATH
install_target "${target}"
rm -rf "${SANDBOX_PATH}"
else
cmd_no_target
if ! target_exists "${target}"; then
cmd_no_target "${target}"
fi
SANDBOX_PATH="$(mktemp -td "${USER:-user}.dotfiles_XXXXXXX")"
export SANDBOX_PATH
install_target "${target}"
rm -rf "${SANDBOX_PATH}"
done
)