[split] Move godfather theme to oh-my-fish/theme-godfather
https://github.com/oh-my-fish/theme-godfatherpull/2/head
parent
5d532cde53
commit
73d755f8f9
@ -1,22 +0,0 @@
|
||||
## godfather fish theme
|
||||
|
||||
Clean git theme with homey feel and git-centric features.
|
||||
|
||||
![screenshot](http://i.imgur.com/mh7a39d.png)
|
||||
|
||||
#### Prompt structure:
|
||||
|
||||
* Left-hand side:
|
||||
* user@host:
|
||||
* truncated cwd (just the current folder name)
|
||||
* git branch with state info (if applicable)
|
||||
|
||||
* Right-hand side:
|
||||
* last error code (if applicable)
|
||||
* [timestamp]
|
||||
|
||||
#### Credits:
|
||||
|
||||
Colors and git functions taken from [amio](https://github.com/amio)'s
|
||||
[edan](https://github.com/bpinto/oh-my-fish/tree/master/themes/edan) theme.
|
||||
|
@ -1,18 +0,0 @@
|
||||
# fish theme: godfather
|
||||
|
||||
function fish_right_prompt
|
||||
set -l last_status $status
|
||||
set -l cyan (set_color -o cyan)
|
||||
set -l red (set_color -o red)
|
||||
set -l normal (set_color normal)
|
||||
|
||||
# print last exit code if nonzero:
|
||||
if test $last_status -ne 0
|
||||
set_color red
|
||||
printf '%d' $last_status
|
||||
set_color normal
|
||||
end
|
||||
|
||||
# display the timestamp on the utmost right.
|
||||
echo -n -s $normal ' [' (date +%H:%M:%S) ']'
|
||||
end
|
Loading…
Reference in New Issue