浏览代码

Log note about restarts for environment changes

default_compile_flags
vector-of-bool 3 年前
父节点
当前提交
33d8eb564b
共有 1 个文件被更改,包括 8 次插入2 次删除
  1. +8
    -2
      src/dds/cli/cmd/install_yourself.cpp

+ 8
- 2
src/dds/cli/cmd/install_yourself.cpp 查看文件

@@ -192,7 +192,7 @@ void fixup_user_path(const options& opts) {
// Let's add it
profile_content
+= ("\n# This entry was added by 'dds install-yourself' for the user-local "
"binaries\nPATH=$HOME/bin:$HOME/.local/bin:$PATH\n");
"binaries path\nPATH=$HOME/bin:$HOME/.local/bin:$PATH\n");
if (opts.dry_run) {
dds_log(info,
"Would update [.br.cyan[{}]] to have ~/.local/bin on $PATH"_styled,
@@ -222,6 +222,9 @@ void fixup_user_path(const options& opts) {
"[.br.green[{}]] was updated. Prior contents are safe in [.br.cyan[{}]]"_styled,
profile_file.string(),
bak_file.string());
dds_log(
info,
".bold.cyan[NOTE:] Running applications may need to be restarted to see this change"_styled);
}
}

@@ -239,7 +242,7 @@ void fixup_user_path(const options& opts) {
"Updating Fish shell configuration [.br.cyan[{}]] with user-local binaries PATH entry"_styled,
fish_config.string());
fish_config_content
+= ("\n# This line was added by 'dds install-yourself' to add the usre-local "
+= ("\n# This line was added by 'dds install-yourself' to add the user-local "
"binaries directory to $PATH\nset -x PATH $PATH \"$HOME/.local/bin\"\n");
auto tmp_file = fish_config;
auto bak_file = fish_config;
@@ -261,6 +264,9 @@ void fixup_user_path(const options& opts) {
"[.br.green[{}]] was updated. Prior contents are safe in [.br.cyan[{}]]"_styled,
fish_config.string(),
bak_file.string());
dds_log(
info,
".bold.cyan[NOTE:] Running Fish shells will need to be restartred to see this change"_styled);
}
}
#else // _WIN32

正在加载...
取消
保存