summaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/main.rs b/src/main.rs
index a50d3a1..25a051e 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -3,7 +3,7 @@ use clap::Parser;
use projectr::{config::Config, project::Projects, tmux::Tmux, Search};
fn main() -> Result<()> {
- let mut config = Config::parse();
+ let config = Config::parse();
tracing_subscriber::fmt::fmt()
.pretty()
@@ -11,12 +11,6 @@ fn main() -> Result<()> {
.with_max_level(&config.verbosity)
.init();
- if config.exclude_attached {
- if let Ok(path) = Tmux::attached() {
- config.parsers.excludes.push(path)
- }
- }
-
let mut projects = Projects::from(config.parsers);
projects.extend(config.include);