mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2025-02-02 07:55:15 +08:00
add 'will' theme
This commit is contained in:
parent
d8077b31c7
commit
353db6aab5
7
themes/will/README.md
Normal file
7
themes/will/README.md
Normal file
|
@ -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
|
10
themes/will/fish_prompt.fish
Normal file
10
themes/will/fish_prompt.fish
Normal file
|
@ -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
|
5
themes/will/fish_right_prompt.fish
Normal file
5
themes/will/fish_right_prompt.fish
Normal file
|
@ -0,0 +1,5 @@
|
|||
function fish_right_prompt
|
||||
set_color red
|
||||
printf '%s ' (prompt_pwd)
|
||||
set_color normal
|
||||
end
|
Loading…
Reference in New Issue
Block a user