Add a flag to control setting the terimnal title (fix #194)

This commit is contained in:
Roey Darwish Dror
2019-09-05 20:52:51 +03:00
parent b80f31db37
commit 78cfffb73b
4 changed files with 26 additions and 3 deletions

View File

@@ -90,6 +90,7 @@ pub struct ConfigFile {
remote_topgrades: Option<Vec<String>>,
ssh_arguments: Option<String>,
git_arguments: Option<String>,
set_title: Option<bool>,
}
impl ConfigFile {
@@ -292,4 +293,9 @@ impl Config {
pub fn edit_config(&self) -> bool {
self.opt.edit_config
}
/// Whether to set the terminal title
pub fn set_title(&self) -> bool {
self.config_file.set_title.unwrap_or(true)
}
}