diff --git a/aliases/carapace.elv b/aliases/carapace.elv index 61f8ba3..665458f 100644 --- a/aliases/carapace.elv +++ b/aliases/carapace.elv @@ -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 }