Function xshell::pushd[][src]

pub fn pushd(dir: impl AsRef<Path>) -> Result<Pushd>

Changes the current directory to dir.

Returns a Pushd value that, when dropped, will reset the current directory to whatever it was right before the call to pushd that produced that Pushd.