summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Frank <justinpfrank@protonmail.com>2018-10-02 14:19:10 -0700
committerJustin Frank <justinpfrank@protonmail.com>2018-10-03 09:44:49 -0700
commit74fb175da15bcf2e9f4da09b452c8ee627b1bd5f (patch)
tree9d6559f9cc339dad12969ae6715028ae4f8a0978
parent551021d6e5360c48c0d08da6464a2ee4081bb3d8 (diff)
Made kitty repl window start in the current working directory
Enclose PWD expansion
-rw-r--r--rc/extra/kitty.kak2
1 files changed, 1 insertions, 1 deletions
diff --git a/rc/extra/kitty.kak b/rc/extra/kitty.kak
index 3365afe2..96991a9d 100644
--- a/rc/extra/kitty.kak
+++ b/rc/extra/kitty.kak
@@ -48,7 +48,7 @@ All optional parameters are forwarded to the new window} \
} \
kitty-repl %{ evaluate-commands %sh{
if [ $# -eq 0 ]; then cmd="${SHELL:-/bin/sh}"; else cmd="$*"; fi
- kitty @ new-window --no-response --window-type $kak_opt_kitty_window_type --title kak_repl_window $cmd < /dev/null > /dev/null 2>&1 &
+ kitty @ new-window --no-response --window-type $kak_opt_kitty_window_type --title kak_repl_window --cwd "$PWD" $cmd < /dev/null > /dev/null 2>&1 &
}}
define-command kitty-send-text -docstring "send the selected text to the repl window" %{