Skip to content

Commit 9a342e3

Browse files
MarcosBorgesPhDrami3l
authored andcommitted
Align shell setup comments in install message
1 parent 5b99b8d commit 9a342e3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/cli/self_update/shell.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,10 @@ pub(crate) fn build_source_env_lines(process: &Process) -> String {
9191
groups.push((src, vec![shell.name()]));
9292
}
9393
}
94+
let src_width = groups.iter().map(|(src, _)| src.len()).max().unwrap_or(0);
9495
groups
9596
.into_iter()
96-
.map(|(src, names)| format!(" {} # For {}\n", src, names.join("/")))
97+
.map(|(src, names)| format!(" {:<src_width$} # For {}\n", src, names.join("/")))
9798
.collect()
9899
}
99100

0 commit comments

Comments
 (0)