Recover the working directory for command to run well
- Command like `vim', `less`, or `git log' may need to run in specific directory for process could find related files. - Fix issue #103pull/104/head
parent
7fd2c979f0
commit
0c2be6d46b
|
@ -31,7 +31,8 @@ restore_pane_process() {
|
|||
local strategy_command="$($strategy_file "$pane_full_command" "$dir")"
|
||||
tmux send-keys "$strategy_command" "C-m"
|
||||
else
|
||||
# just invoke the command
|
||||
# just change to the right directory, and invoke the command
|
||||
tmux send-keys "cd $dir" "C-m"
|
||||
tmux send-keys "$pane_full_command" "C-m"
|
||||
fi
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue