From 04ae830fd1c2f3496bd1e5489f26e4f5e0931af6 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Tue, 13 Dec 2022 13:18:51 -0600 Subject: [PATCH] docker image broken till PR merged in eget --- docker/install-tools.sh | 6 ++- home/private_bin/executable_aweget | 6 ++- home/private_dot_config/eget/eget.toml | 63 ++++++++++++++++++++++++++ 3 files changed, 71 insertions(+), 4 deletions(-) create mode 100644 home/private_dot_config/eget/eget.toml diff --git a/docker/install-tools.sh b/docker/install-tools.sh index ec2e96b..1073945 100755 --- a/docker/install-tools.sh +++ b/docker/install-tools.sh @@ -6,18 +6,20 @@ # export PATH="$PATH:/home/daylin/bin:/home/daylin/.dotfiles/bin" export EGET_BIN=/home/$USER/bin +export EGET_CONFIG=/home/$USER/.config/eget/eget.toml export DOTFILES_DIR=/home/$USER/.dotfiles curl https://zyedidia.github.io/eget.sh | sh && mv ./eget ./bin/eget +eget Tomwright/dasel --asset dasel_linux_amd64 -tools $(cat "$DOTFILES_DIR/docker/tools.txt") +aweget $(awk '{printf "-i %s ", $0}' "$DOTFILES_DIR/docker/tools.txt") # eget rossmacarthur/sheldon eget tree-sitter/tree-sitter # installing nvim eget neovim/neovim --to ./nvim.appimage --pre-release -./nvim.appimage --appimage-extract +./nvim.appimage --appimage-extract >/dev/null 2>&1 ./squashfs-root/AppRun --version mv squashfs-root / diff --git a/home/private_bin/executable_aweget b/home/private_bin/executable_aweget index dbcb7a0..01352c2 100644 --- a/home/private_bin/executable_aweget +++ b/home/private_bin/executable_aweget @@ -15,7 +15,9 @@ try: except ImportError: pass -EGET_CONFIG = Path.home() / ".config" / "eget" / "eget.toml" + +EGET_CONFIG = os.getenv("EGET_CONFIG", Path.home() / + ".config" / "eget" / "eget.toml") class Color: @@ -44,7 +46,7 @@ class Repo: class Config: def __init__(self): - if tomllib: + if "tomllib" in sys.modules: settings, config = self.parse_toml_tomllib() else: settings, config = self.parse_toml() diff --git a/home/private_dot_config/eget/eget.toml b/home/private_dot_config/eget/eget.toml new file mode 100644 index 0000000..ffd301c --- /dev/null +++ b/home/private_dot_config/eget/eget.toml @@ -0,0 +1,63 @@ +[global] +target = "~/bin" + +["ellie/atuin"] + +["sharkdp/bat"] +asset_filters = ["x86_64-unknown-linux-gnu"] + +["ClementTsang/bottom"] +asset_filters = ["x86_64-unknown-linux-gnu.tar.gz"] +file = "btm" + +["aristocratos/btop"] + +["cli/cli"] +asset_filters = ["linux_amd64.tar.gz"] +target = "gh" + +["dandavison/delta"] +asset_filters = ["x86_64-unknown-linux-gnu"] + +["sharkdp/fd"] +asset_filters = ["x86_64-unknown-linux-gnu"] + +["Schniz/fnm"] + +["junegunn/fzf"] + +["dundee/gdu"] +asset_filters = ["gdu_linux_amd64.tgz"] + +["profclems/glab"] +asset_filters = ["Linux_x86_64.tar.gz"] + +["charmbracelet/gum"] +asset_filters = ["linux_x86_64.tar.gz", "^.sbom"] + +["casey/just"] + +["jesseduffield/lazydocker"] + +["jesseduffield/lazygit"] + +["gokcehan/lf"] + +["Peltoche/lsd"] +asset_filters = ["x86_64-unknown-linux-gnu"] + +["neovim/neovim"] +target = "nvim" + +["BurntSushi/ripgrep"] +target = "rg" + +["mvdan/sh"] +target = "shfmt" + +["rossmacarthur/sheldon"] + +["starship/starship"] +asset_filters = ["starship-x86_64-unknown-linux-gnu.tar.gz"] + +["ajeetdsouza/zoxide"]