Hopla ! Visiblement, Elvish n’utilise pas de sous-shell, et toutes les opération cd sont transférée…
This commit is contained in:
parent
2644129e08
commit
2ef9748b0e
|
@ -1,6 +1,7 @@
|
||||||
edit:add-var updatecarapace~ []{
|
edit:add-var updatecarapace~ []{
|
||||||
var wd = $E:HOME/Documents/OtherGo/github.com/rsteube/carapace-bin
|
var cur = (pwd)
|
||||||
var bd = $E:HOME/Go/bin
|
var wd = $E:HOME/Documents/OtherGo/github.com/rsteube/carapace-bin
|
||||||
|
var bd = $E:HOME/Go/bin
|
||||||
cd $wd
|
cd $wd
|
||||||
git pull
|
git pull
|
||||||
cd cmd/carapace
|
cd cmd/carapace
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue