From f6916c3c3c1cd15afa0daa69724ec9795a6c7dfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ensar=20Saraj=C4=8Di=C4=87?= Date: Sat, 19 Aug 2023 21:02:09 +0200 Subject: [PATCH] Add asdfexec helper command --- symlinks/config/fish/config.fish | 7 +++++++ symlinks/config/fish/functions/fisher.fish | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/symlinks/config/fish/config.fish b/symlinks/config/fish/config.fish index ddfdc7a..62f2bb7 100644 --- a/symlinks/config/fish/config.fish +++ b/symlinks/config/fish/config.fish @@ -43,3 +43,10 @@ eval (asdf exec direnv hook fish | source) function direnv asdf exec direnv "$argv" end + +function asdfexec + begin + asdf shell $argv[1] $argv[2] + $argv[3..] + end +end diff --git a/symlinks/config/fish/functions/fisher.fish b/symlinks/config/fish/functions/fisher.fish index 73b7f4e..404e26e 100644 --- a/symlinks/config/fish/functions/fisher.fish +++ b/symlinks/config/fish/functions/fisher.fish @@ -83,7 +83,7 @@ function fisher -a cmd -d "fish plugin manager" fish -c " if test -e $plugin command cp -Rf $plugin/* $source - else + else set temp (command mktemp -d) set name (string split \@ $plugin) || set name[2] HEAD set url https://codeload.github.com/\$name[1]/tar.gz/\$name[2] @@ -203,4 +203,4 @@ else if functions -q _fisher_list # 4.0 echo -n "upgrading to fisher $fisher_version new in-memory state.." fisher update >/dev/null 2>/dev/null echo -ne "done\r\n" -end \ No newline at end of file +end