strip trailing slashes
1 files changed, 1 insertions(+), 1 deletions(-) M src/cwd.rs
M src/cwd.rs => src/cwd.rs +1 -1
@@ 9,7 9,7 @@ pub fn cwd<W: Write>(mut w: W) -> Result<(), Error> { cwd = Path::new("~").join(stripped); } } - write!(w, "{} ", cwd.display())?; + write!(w, "{} ", cwd.display().to_string().trim_end_matches('/'))?; } Ok(()) }