summaryrefslogtreecommitdiff
path: root/src/shell_manager.cc
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2020-12-09 09:13:45 +1100
committerMaxime Coste <mawww@kakoune.org>2020-12-09 09:13:45 +1100
commit74c337df5db5dedbd8d8404e27164c3ad6f3e5ef (patch)
tree671f543495cb04c14ec46d84f435963fc9485d9e /src/shell_manager.cc
parentce97c0dd17238280b5acc15c53599b04265c1921 (diff)
Add a libexec/ directory and use it to find the kak command
Add that libexec directory to the PATH instead of the current kak binary directory to avoid impacting other commands. The libexec directory currently only contains a symlink back to the Kakoune binary.
Diffstat (limited to 'src/shell_manager.cc')
-rw-r--r--src/shell_manager.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shell_manager.cc b/src/shell_manager.cc
index 8d70dd1c..591a708d 100644
--- a/src/shell_manager.cc
+++ b/src/shell_manager.cc
@@ -72,7 +72,7 @@ ShellManager::ShellManager(ConstArrayView<EnvVarDesc> builtin_env_vars)
// have access to the kak command regardless of if the user installed it
{
const char* path = getenv("PATH");
- auto new_path = format("{}:{}", path, split_path(get_kak_binary_path()).first);
+ auto new_path = format("{}../libexec/kak:{}", split_path(get_kak_binary_path()).first, path);
setenv("PATH", new_path.c_str(), 1);
}
}