diff options
| author | Alex Leferry 2 <alexherbo2@gmail.com> | 2020-06-20 23:45:45 +0200 |
|---|---|---|
| committer | Alex Leferry 2 <alexherbo2@gmail.com> | 2020-06-20 23:45:45 +0200 |
| commit | 4773af381ef5b6fc9ffdc99d13700b274535a428 (patch) | |
| tree | 1a5ae5c06b8f1cdd9feb531125fa17673679441e | |
| parent | 05baa48582d383799e3e892d6c79656cf40b2f72 (diff) | |
Remove session fragment from connect script path
| -rwxr-xr-x | bin/kak-connect | 2 | ||||
| -rw-r--r-- | rc/connect.kak | 4 | ||||
| -rwxr-xr-x | rc/paths/commands/attach | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/bin/kak-connect b/bin/kak-connect index 1c9c1b4..d5a4678 100755 --- a/bin/kak-connect +++ b/bin/kak-connect @@ -39,7 +39,7 @@ EOF " # Attach the connect terminal command. # Act as a “boot loader”. - script_path=$XDG_DATA_HOME/kak/connect/$kak_session/script.sh + script_path=$XDG_DATA_HOME/kak/connect/script.sh if test -e "$script_path"; then mv "$script_path" "$script_path~" sh "$script_path~" diff --git a/rc/connect.kak b/rc/connect.kak index 54b0635..c551675 100644 --- a/rc/connect.kak +++ b/rc/connect.kak @@ -33,9 +33,9 @@ provide-module connect %{ } define-command connect-detach -params .. -shell-completion -docstring 'Write the given shell command to your connect data path and detach the client' %{ evaluate-commands %sh{ - mkdir -p "$kak_opt_connect_data_path/$kak_session" + mkdir -p "$kak_opt_connect_data_path" } - echo -to-file "%opt{connect_data_path}/%val{session}/script.sh" -quoting shell %arg{@} + echo -to-file "%opt{connect_data_path}/script.sh" -quoting shell %arg{@} quit! } alias global t connect-terminal diff --git a/rc/paths/commands/attach b/rc/paths/commands/attach index e1199eb..d95b786 100755 --- a/rc/paths/commands/attach +++ b/rc/paths/commands/attach @@ -1,6 +1,6 @@ #!/bin/sh -script_path=$XDG_DATA_HOME/kak/connect/$KAKOUNE_SESSION/script.sh +script_path=$XDG_DATA_HOME/kak/connect/script.sh if test -e "$script_path"; then mv "$script_path" "$script_path~" |
