Hopla ! Visiblement, Elvish n’utilise pas de sous-shell, et toutes les opération cd sont transférée…

This commit is contained in:
Benjamin VAUDOUR 2021-11-08 07:40:10 +01:00
parent 2644129e08
commit 2ef9748b0e
1 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,7 @@
edit:add-var updatecarapace~ []{
var wd = $E:HOME/Documents/OtherGo/github.com/rsteube/carapace-bin
var bd = $E:HOME/Go/bin
var cur = (pwd)
var wd = $E:HOME/Documents/OtherGo/github.com/rsteube/carapace-bin
var bd = $E:HOME/Go/bin
cd $wd
git pull
cd cmd/carapace
@ -9,4 +10,5 @@ edit:add-var updatecarapace~ []{
if (bool ?(test -f carapace)) {
mv -f carapace $bd
}
cd $cur
}