pkg download upd
This commit is contained in:
@ -11,8 +11,9 @@ cp -l target/release/zoxide ../bin/
|
|||||||
``` sh *** config ***
|
``` sh *** config ***
|
||||||
mkdir -p share/zsh/zshrc-auto.d
|
mkdir -p share/zsh/zshrc-auto.d
|
||||||
zoxide init zsh > share/zsh/zshrc-auto.d/zoxide.zsh
|
zoxide init zsh > share/zsh/zshrc-auto.d/zoxide.zsh
|
||||||
|
echo "alias cd='z'" >> share/zsh/zshrc-auto.d/zoxide.zsh
|
||||||
|
|
||||||
cd bin
|
cd bin
|
||||||
cp -l zoxide z
|
cp -l zoxide z
|
||||||
cp -l z Z
|
cp -l z Z
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@ -7,6 +7,7 @@ use std::cell::RefCell;
|
|||||||
use super::get_aeropkg_base;
|
use super::get_aeropkg_base;
|
||||||
use crate::utils::parser::{self, env::get_install_env, pkginfo, repoinfo};
|
use crate::utils::parser::{self, env::get_install_env, pkginfo, repoinfo};
|
||||||
use crate::commands::link::link;
|
use crate::commands::link::link;
|
||||||
|
use crate::commands::run::config::config;
|
||||||
|
|
||||||
#[derive(Default)]
|
#[derive(Default)]
|
||||||
struct DownloadSummary {
|
struct DownloadSummary {
|
||||||
@ -126,6 +127,7 @@ pub fn download(repo: &String, pkgname: &String, force: bool, recursive: bool) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
config(repo, pkgname);
|
||||||
let full_env = get_install_env(repo, pkgname, pkg_md_path, "build");
|
let full_env = get_install_env(repo, pkgname, pkg_md_path, "build");
|
||||||
if full_env.get("disable").is_some() {
|
if full_env.get("disable").is_some() {
|
||||||
let _ = fs::File::create(crate::commands::get_aeropkg_base().join(repo).join(pkgname).join("disabled"));
|
let _ = fs::File::create(crate::commands::get_aeropkg_base().join(repo).join(pkgname).join("disabled"));
|
||||||
|
|||||||
@ -16,5 +16,7 @@ pub fn config(repo: &String, pkgname: &String) {
|
|||||||
run_install_script(&config_script, pkg_dir, &full_env);
|
run_install_script(&config_script, pkg_dir, &full_env);
|
||||||
run_install_script_hook(repo, "config", &full_env);
|
run_install_script_hook(repo, "config", &full_env);
|
||||||
|
|
||||||
|
if !crate::commands::get_aeropkg_base().join(repo).join(pkgname).join("disabled").exists() {
|
||||||
link(repo, pkgname)
|
link(repo, pkgname)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user