mirror of
https://github.com/Llewellynvdm/starship.git
synced 2024-12-26 03:27:30 +00:00
fix a few typos (#178)
This commit is contained in:
parent
8782e300fc
commit
dfe2ae643a
@ -268,7 +268,7 @@ more than the `threshold` config value, if it exists.
|
|||||||
|
|
||||||
| Variable | Default | Description |
|
| Variable | Default | Description |
|
||||||
| ----------- | ------- | -------------------------------- |
|
| ----------- | ------- | -------------------------------- |
|
||||||
| `threshold` | `1` | Show number of jobs if execeded. |
|
| `threshold` | `1` | Show number of jobs if exceeded. |
|
||||||
| `disabled` | `false` | Disables the `jobs` module. |
|
| `disabled` | `false` | Disables the `jobs` module. |
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
@ -37,7 +37,7 @@ impl<'a> Context<'a> {
|
|||||||
/// Identify the current working directory and create an instance of Context
|
/// Identify the current working directory and create an instance of Context
|
||||||
/// for it.
|
/// for it.
|
||||||
pub fn new(arguments: ArgMatches) -> Context {
|
pub fn new(arguments: ArgMatches) -> Context {
|
||||||
// Retreive the "path" flag. If unavailable, use the current directory instead.
|
// Retrieve the "path" flag. If unavailable, use the current directory instead.
|
||||||
let path = arguments
|
let path = arguments
|
||||||
.value_of("path")
|
.value_of("path")
|
||||||
.map(From::from)
|
.map(From::from)
|
||||||
|
@ -6,7 +6,7 @@ use super::{Context, Module};
|
|||||||
|
|
||||||
/// Creates a module with the current user's username
|
/// Creates a module with the current user's username
|
||||||
///
|
///
|
||||||
/// Will display the usename if any of the following criteria are met:
|
/// Will display the username if any of the following criteria are met:
|
||||||
/// - The current user isn't the same as the one that is logged in (`$LOGNAME` != `$USER`)
|
/// - The current user isn't the same as the one that is logged in (`$LOGNAME` != `$USER`)
|
||||||
/// - The current user is root (UID = 0)
|
/// - The current user is root (UID = 0)
|
||||||
/// - The user is currently connected as an SSH session (`$SSH_CONNECTION`)
|
/// - The user is currently connected as an SSH session (`$SSH_CONNECTION`)
|
||||||
|
Loading…
Reference in New Issue
Block a user