From 353db6aab5c29e2fff91ff189c049a9034e03221 Mon Sep 17 00:00:00 2001 From: William Rudenmalm Date: Mon, 2 Mar 2015 20:38:09 +0100 Subject: [PATCH 1/2] add 'will' theme --- themes/will/README.md | 7 +++++++ themes/will/fish_prompt.fish | 10 ++++++++++ themes/will/fish_right_prompt.fish | 5 +++++ 3 files changed, 22 insertions(+) create mode 100644 themes/will/README.md create mode 100644 themes/will/fish_prompt.fish create mode 100644 themes/will/fish_right_prompt.fish diff --git a/themes/will/README.md b/themes/will/README.md new file mode 100644 index 0000000..5084a99 --- /dev/null +++ b/themes/will/README.md @@ -0,0 +1,7 @@ +## Will +Minimalist theme. + +#### Characteristics +* The current working directory is displayed on the right-side +* Hostnames are displayed if and only if we're on an SSH connection +* Uses logical entailment as the prompt character diff --git a/themes/will/fish_prompt.fish b/themes/will/fish_prompt.fish new file mode 100644 index 0000000..8dee980 --- /dev/null +++ b/themes/will/fish_prompt.fish @@ -0,0 +1,10 @@ +function fish_prompt + if test -n "$SSH_CONNECTION" + printf '%s ' $HOSTNAME + end + + set_color red + printf "⊨" + set_color normal + printf " " +end diff --git a/themes/will/fish_right_prompt.fish b/themes/will/fish_right_prompt.fish new file mode 100644 index 0000000..e662215 --- /dev/null +++ b/themes/will/fish_right_prompt.fish @@ -0,0 +1,5 @@ +function fish_right_prompt + set_color red + printf '%s ' (prompt_pwd) + set_color normal +end From 11f9269ac7e26e1b6298f12c8a108e664f4bef28 Mon Sep 17 00:00:00 2001 From: William Hogman Date: Tue, 3 Mar 2015 13:45:35 +0100 Subject: [PATCH 2/2] Add screenshot to will-theme --- themes/will/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/themes/will/README.md b/themes/will/README.md index 5084a99..319f757 100644 --- a/themes/will/README.md +++ b/themes/will/README.md @@ -1,6 +1,8 @@ ## Will Minimalist theme. +![Screenshot](https://cloud.githubusercontent.com/assets/143746/6462675/60d171fe-c1ab-11e4-9434-8718a2139c79.png) + #### Characteristics * The current working directory is displayed on the right-side * Hostnames are displayed if and only if we're on an SSH connection