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