diff options
| author | Alex Leferry 2 <alexherbo2@gmail.com> | 2020-06-19 11:15:42 +0200 |
|---|---|---|
| committer | Alex Leferry 2 <alexherbo2@gmail.com> | 2020-06-19 11:15:42 +0200 |
| commit | d2e4763e3351b7f31b44ce624801757d1f2776fa (patch) | |
| tree | 7d48b381a147403c06e9869d1148026172ec4432 /bin | |
| parent | 3221b39aad248985bbe0db35414d2715414c96cf (diff) | |
kak-connect: Document the script
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/kak-connect | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/kak-connect b/bin/kak-connect index 6df7864..e47de4d 100755 --- a/bin/kak-connect +++ b/bin/kak-connect @@ -21,7 +21,10 @@ EOF else set -- 'edit' "$@" fi + # Start the session in daemon mode. kak -s "$kak_session" -d + # Alias terminal to connect-detach and enter in the connect environment. + # connect-detach allows to run CLI commands in the same terminal window. kak -c "$kak_session" -e " alias global terminal connect-detach set-option global connect_environment %{ @@ -29,7 +32,8 @@ EOF } connect-terminal $@ " - # Attach the connect terminal command + # Attach the connect terminal command. + # Act as a “boot loader”. script_path=$XDG_DATA_HOME/kak/connect/$kak_session/script.sh if test -e "$script_path"; then mv "$script_path" "$script_path~" |
