Enum setenv::Shell
[−]
[src]
pub enum Shell {
Windows,
Bash,
Tcsh,
Zsh,
Ksh,
}THe types of shells we know about
Variants
WindowsBashThe default if we can't figure out the shell
TcshZshKshMethods
impl Shell[src]
fn cd<P: AsRef<OsStr>>(&self, p: P)
Prints to stdout the necessary command to change directory.
fn setenv<K: AsRef<OsStr>, V: AsRef<OsStr>>(&self, k: K, v: V)
Prints to stdout the necessary command to set an envionrment variable
fn split_env<K: AsRef<OsStr>>(&self, k: K) -> Vec<OsString>
A simple wrapper around std::env::split_paths
fn setenv_list<K, I, T>(&self, k: K, v: I) where
K: AsRef<OsStr>,
I: IntoIterator<Item = T>,
T: AsRef<OsStr>,
K: AsRef<OsStr>,
I: IntoIterator<Item = T>,
T: AsRef<OsStr>,
A simple wrapper around std::env::join_paths and setenv