Makes zsh expand initial command properly

This commit is contained in:
Jonathan Hodgson 2020-09-19 11:19:58 +01:00
parent b19db697e8
commit 3a647e8756

View file

@ -64,7 +64,7 @@ setopt chaselinks
# THis is almost always a curses app so I don't want to try and record the terminal # THis is almost always a curses app so I don't want to try and record the terminal
if [ -n "$initialCommand" ]; then if [ -n "$initialCommand" ]; then
echo "Running $initialCommand" echo "Running $initialCommand"
$initialCommand && exit ${=initialCommand} && exit
else else
local current="$(project current --path)" local current="$(project current --path)"
if [ -n "$current" ]; then if [ -n "$current" ]; then