summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md4
-rw-r--r--rc/connect.kak6
2 files changed, 5 insertions, 5 deletions
diff --git a/README.md b/README.md
index c04b857..c9b9e27 100644
--- a/README.md
+++ b/README.md
@@ -157,8 +157,8 @@ set-option global connect_environment %{
### Custom connect commands
-You can also define your own connect commands in
-`$XDG_CONFIG_HOME/kak/connect/commands` and `$XDG_CONFIG_HOME/kak/connect/aliases`.
+You can also define your own connect commands by setting the `connect_paths` option.
+By default, it is set to your `$XDG_CONFIG_HOME/kak/connect/commands` and `$XDG_CONFIG_HOME/kak/connect/aliases`.
See [commands] and [aliases] for examples.
### Custom prompt
diff --git a/rc/connect.kak b/rc/connect.kak
index 3148bd9..bff5c4d 100644
--- a/rc/connect.kak
+++ b/rc/connect.kak
@@ -6,10 +6,10 @@ provide-module connect %{
require-module prelude
# Options
- declare-option str connect_environment
+ declare-option -docstring 'connect environment' str connect_environment
# Connect paths
- declare-option str-list connect_paths
+ declare-option -docstring 'connect paths' str-list connect_paths
# Internal variable to mirror the connect paths as PATH.
declare-option -hidden str connect_environment_paths
@@ -34,7 +34,7 @@ provide-module connect %{
}
# Initialize the option with the user config paths
- declare-option str-list connect_paths "%val{config}/connect/aliases" "%val{config}/connect/commands"
+ set-option global connect_paths "%val{config}/connect/aliases" "%val{config}/connect/commands"
# Commands
define-command connect-terminal -params .. -shell-completion -docstring 'Open a new terminal' %{