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 #103
pull/104/head
Po-Chien Lin 2015-09-16 08:25:22 +08:00
parent 7fd2c979f0
commit 0c2be6d46b
No known key found for this signature in database
GPG Key ID: 8B281692865C427F
1 changed files with 2 additions and 1 deletions

View File

@ -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