~kmaasrud/prompt

a51bb2f9546e08fafaaa8695ba8b92f5bb4603cf — kmaasrud 1 year, 6 months ago c7f8e44
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(())
}