|
|
@ -15,7 +15,7 @@ if [ "$last_ps" == "tmux" ] ; then
|
|
|
|
current_pane=$(tmux list-panes | grep '(active)' | grep -o '^[0-9]')
|
|
|
|
current_pane=$(tmux list-panes | grep '(active)' | grep -o '^[0-9]')
|
|
|
|
cwd=$(tmux display-message -p -t $current_pane -F '#{pane_current_path}')
|
|
|
|
cwd=$(tmux display-message -p -t $current_pane -F '#{pane_current_path}')
|
|
|
|
else
|
|
|
|
else
|
|
|
|
cwd=$(readlink -e /proc/${children[-2]}/cwd)
|
|
|
|
cwd=$(readlink -e /proc/${children[-1]}/cwd)
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# change to the directory
|
|
|
|
# change to the directory
|
|
|
|