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,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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue