Closed vbauerster closed 3 years ago
Is the session still alive? What is the content of the file?
(connect.sh
will create (connect you to) a connected environment. &
will generate a script to open a shell session, then you can use :a
, etc. to reattach. &
also accepts a shell command to run.)
Is the session still alive?
no, kak -l
shows no sessions (after &)
What is the content of the file?
rm "$0"
'sh' '-c' '
kak_opt_prelude_path=$1
kak_opt_connect_root_path=$2
kak_opt_connect_environment=$3
kak_opt_connect_environment_paths=$4
kak_session=$5
kak_client=$6
kak_server_working_directory=$7
. "$kak_opt_connect_root_path/connect/env/default.env"
. "$kak_opt_connect_root_path/connect/env/overrides.env"
. "$kak_opt_connect_root_path/connect/env/kakoune.env"
. "$kak_opt_connect_root_path/connect/env/git.env"
eval "$kak_opt_connect_environment"
shift 8
cd "$kak_server_working_directory"
[ "$1" ] && "$@" || "$SHELL"
' '--' '/Users/vbauer/.config/kak/plugins/github.com/alexherbo2/prelude.kak/rc/prelude.sh' '/Users/vbauer/.config/kak/plugins/github.com/alexherbo2/connect.kak/rc' '' ':/Users/vbauer/.config/kak/connect/aliases:/Users/vbauer/.config/kak/connect/commands:/Users/vbauer/.config/kak/plugins/github.com/alexherbo2/connect.kak/rc/connect/modules/fifo/aliases:/Users/vbauer/.config/kak/plugins/github.com/alexherbo2/connect.kak/rc/connect/modules/fifo/commands:/Users/vbauer/.config/kak/plugins/github.com/alexherbo2/connect.kak/rc/connect/modules/broot/aliases:/Users/vbauer/.config/kak/plugins/github.com/alexherbo2/connect.kak/rc/connect/modules/broot/commands:/Users/vbauer/.config/kak/plugins/github.com/alexherbo2/connect.kak/rc/connect/modules/fzf/aliases:/Users/vbauer/.config/kak/plugins/github.com/alexherbo2/connect.kak/rc/connect/modules/fzf/commands:/Users/vbauer/.config/kak/plugins/github.com/alexherbo2/connect.kak/rc/connect/modules/lf/aliases:/Users/vbauer/.config/kak/plugins/github.com/alexherbo2/connect.kak/rc/connect/modules/lf/commands:/Users/vbauer/.config/kak/plugins/github.com/alexherbo2/connect.kak/rc/connect/modules/nnn/aliases:/Users/vbauer/.config/kak/plugins/github.com/alexherbo2/connect.kak/rc/connect/modules/nnn/commands' '95252' 'client0' '/Users/vbauer/go/src/github.com/vbauerster/getparty' 'detach'
The &
command should refuse to quit if you are not in daemon mode. I suspect you are not using the latest version of the plugin or Kakoune.
ok, if I spawn a headless session with kak -d -n test
then it works. I mean sh connect.sh
and :a
brings a session back.
Try kak-shell
, it’s really good for this.
I suspect you are not using the latest version of the plugin or Kakoune.
I use master version of kakoune and load plugins manually via source
.
Try
kak-shell
, it’s really good for this.
Thanks for advice, I'll give it a try.
I'm zsh user on macOS. After invoking
&
command inside kakoune it quits andconnect.sh
is written in pwd. Then runningsh connect.sh
does nothing. I expected my last session is to be attached. Also I tried inside and outside of tmux and it didn't help.