summaryrefslogtreecommitdiff
path: root/src/shell_manager.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/shell_manager.cc')
-rw-r--r--src/shell_manager.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/shell_manager.cc b/src/shell_manager.cc
index 6b82ba91..1c614455 100644
--- a/src/shell_manager.cc
+++ b/src/shell_manager.cc
@@ -22,9 +22,7 @@ ShellManager::ShellManager()
if (path)
new_path = path + ":"_str;
- String kak_path = get_kak_binary_path();
- StringView kak_dir{kak_path.begin(), find(reversed(kak_path), '/').base()-1};
- new_path += kak_dir;
+ new_path += split_path(get_kak_binary_path()).first;
setenv("PATH", new_path.c_str(), 1);
}