summaryrefslogtreecommitdiffstats
path: root/src/print.rs
diff options
context:
space:
mode:
authorAndrew Houts <16907671+ahouts@users.noreply.github.com>2019-09-04 10:03:31 -0700
committerMatan Kushner <hello@matchai.me>2019-09-04 13:03:31 -0400
commit84688e498191074acdea2d8a7ed2be598cd67188 (patch)
treef1ec33d3793287ea6c432e8f36dd50c3c0cac4a1 /src/print.rs
parent5a0f269d85c3bc8a64aa6ee1f3cea4d072d070cb (diff)
feat: add hostname module (#286)
Add a hostname module as requested by @chipbuster. Displays the system hostname as provided by gethostname.
Diffstat (limited to 'src/print.rs')
-rw-r--r--src/print.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/print.rs b/src/print.rs
index c3d2e8f41..74997b26d 100644
--- a/src/print.rs
+++ b/src/print.rs
@@ -13,6 +13,7 @@ use crate::modules;
// prompt heading of config docs needs to be updated according to changes made here.
const DEFAULT_PROMPT_ORDER: &[&str] = &[
"username",
+ "hostname",
"directory",
"git_branch",
"git_status",