Add a flag to control setting the terimnal title (fix #194)
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user