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