Compare commits
No commits in common. "c865c2d1ab0d7905d0dd2969952dd0b684013027" and "bf67610ccb20fa8a24815e2cfaa73bda0d279da2" have entirely different histories.
c865c2d1ab
...
bf67610ccb
3 changed files with 8 additions and 12 deletions
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "remux"
|
name = "remux"
|
||||||
version = "0.3.6"
|
version = "0.3.5"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
authors = [ "Valerie Wolfe <sleeplessval@gmail.com>" ]
|
authors = [ "Valerie Wolfe <sleeplessval@gmail.com>" ]
|
||||||
description = "A friendly command shortener for tmux"
|
description = "A friendly command shortener for tmux"
|
||||||
|
|
|
@ -188,14 +188,11 @@ pub fn new(state: &mut State) {
|
||||||
.new_name(&window_name);
|
.new_name(&window_name);
|
||||||
tmux = tmux.add_command(auto_name);
|
tmux = tmux.add_command(auto_name);
|
||||||
|
|
||||||
let rc_var = env_var(env::NEW_RC);
|
if let Some(mut scripts) = script::list() {
|
||||||
if !(rc_var.is_empty() || rc_var == "0") {
|
if let Some(path) = scripts.remove(&window_name) {
|
||||||
if let Some(mut scripts) = script::list() {
|
let rc = commands::SourceFile::new()
|
||||||
if let Some(path) = scripts.remove(&window_name) {
|
.path(path);
|
||||||
let rc = commands::SourceFile::new()
|
tmux = tmux.add_command(rc);
|
||||||
.path(path);
|
|
||||||
tmux = tmux.add_command(rc);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,10 +2,9 @@ use std::env::var;
|
||||||
|
|
||||||
pub type EnvVar = (&'static str, &'static str);
|
pub type EnvVar = (&'static str, &'static str);
|
||||||
|
|
||||||
pub static ATTACH_SYMBOL: EnvVar = ("REMUX_ATTACH_SYMBOL", "*");
|
pub static ATTACH_SYMBOL: EnvVar = ("REMUX_ATTACH_SYMBOL", "*");
|
||||||
pub static CURRENT_SYMBOL: EnvVar = ("REMUX_CURRENT_SYMBOL", ">");
|
pub static CURRENT_SYMBOL: EnvVar = ("REMUX_CURRENT_SYMBOL", ">");
|
||||||
pub static NEW_WINDOW_NAME: EnvVar = ("REMUX_NEW_WINDOW", "");
|
pub static NEW_WINDOW_NAME: EnvVar = ("REMUX_NEW_WINDOW", "");
|
||||||
pub static NEW_RC: EnvVar = ("REMUX_NEW_RC", "1");
|
|
||||||
|
|
||||||
pub static TMUX: &str = "TMUX";
|
pub static TMUX: &str = "TMUX";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue