summaryrefslogtreecommitdiff
path: root/rc
diff options
context:
space:
mode:
authorMathieu Ablasou <alexherbo2@gmail.com>2020-11-15 00:46:36 +0100
committerMathieu Ablasou <alexherbo2@gmail.com>2020-11-15 00:46:36 +0100
commit932509070acb9787b2ce5c85e1727a35491ce675 (patch)
treedd5fabe99bae4348c478a648b10a22c9deac08b8 /rc
parent3a98b07387401e458b12c0bce2fe08bef8934a45 (diff)
detach: Fix path to connect.sh
Diffstat (limited to 'rc')
-rw-r--r--rc/connect.kak6
1 files changed, 3 insertions, 3 deletions
diff --git a/rc/connect.kak b/rc/connect.kak
index 9bffd52..2e837c9 100644
--- a/rc/connect.kak
+++ b/rc/connect.kak
@@ -104,12 +104,12 @@ provide-module connect %{
define-command detach -params 1.. -shell-completion -docstring 'Write an attachable program to connect.sh and detach the client' %{
# Could be simpler with `echo -to-file <file> -append <text>`
# https://github.com/mawww/kakoune/issues/3874
- echo -to-file connect.sh~ -quoting shell %arg{@}
+ echo -to-file "%val{client_env_PWD}/connect.sh~" -quoting shell %arg{@}
# Remove connect.sh on source
nop %sh{
- echo 'rm "$0"' | cat - connect.sh~ > connect.sh
- rm connect.sh~
+ echo 'rm "$0"' | cat - "$kak_client_env_PWD/connect.sh~" > "$kak_client_env_PWD/connect.sh"
+ rm "$kak_client_env_PWD/connect.sh~"
}
# Detach the client