wip
This commit is contained in:
parent
2f3be76879
commit
80a8909add
1 changed files with 6 additions and 2 deletions
8
yazi.sh
8
yazi.sh
|
@ -133,16 +133,20 @@
|
||||||
run cargo install --locked yazi-fm yazi-cli
|
run cargo install --locked yazi-fm yazi-cli
|
||||||
}
|
}
|
||||||
|
|
||||||
|
yazi_setup() {
|
||||||
|
run ya pack -u || run ya pack -i
|
||||||
|
}
|
||||||
|
|
||||||
c_yazi() {
|
c_yazi() {
|
||||||
if [ -e "$HOME/.config/yazi/package.toml" ]; then
|
if [ -e "$HOME/.config/yazi/package.toml" ]; then
|
||||||
if command_exists ya; then
|
if command_exists ya; then
|
||||||
run ya pack -u || run ya pack -i
|
yazi_setup || echo_error "Yazi was not setup properly.."
|
||||||
else
|
else
|
||||||
if [ -e "$HOME/.cargo/env" ]; then
|
if [ -e "$HOME/.cargo/env" ]; then
|
||||||
echo_info "Loadet $HOME/.cargo/env"
|
echo_info "Loadet $HOME/.cargo/env"
|
||||||
. "$HOME/.cargo/env"
|
. "$HOME/.cargo/env"
|
||||||
|
|
||||||
run ya pack -u || run ya pack -i
|
yazi_setup || echo_error "Yazi was not setup properly.."
|
||||||
else
|
else
|
||||||
echo_error "Something went wrong when installing yazi.. ya is not available.."
|
echo_error "Something went wrong when installing yazi.. ya is not available.."
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue