Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
O
oh-my-fish
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
oh-my-fish
Commits
adb9caf2
Commit
adb9caf2
authored
May 31, 2015
by
Justin Hileman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[split] Move zish theme to oh-my-fish/theme-zish
https://github.com/oh-my-fish/theme-zish
parent
011bc012
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
62 deletions
+0
-62
themes/zish/README.md
themes/zish/README.md
+0
-13
themes/zish/fish_prompt.fish
themes/zish/fish_prompt.fish
+0
-37
themes/zish/fish_right_prompt.fish
themes/zish/fish_right_prompt.fish
+0
-12
themes/zish/zish_preview.png
themes/zish/zish_preview.png
+0
-0
No files found.
themes/zish/README.md
deleted
100644 → 0
View file @
011bc012
## Zish
Zhishen Wen's simple fun theme =)
![
zish
](
https://raw.githubusercontent.com/bpinto/oh-my-fish/master/themes/zish/zish_preview.png
)
#### Left prompt
User, host, abbreviated path, and git branch info
####Right prompt
Time and exit code
Enjoy!
themes/zish/fish_prompt.fish
deleted
100644 → 0
View file @
011bc012
# name: Zish
function _is_git_dirty
echo (command git status -s --ignore-submodules=dirty ^/dev/null)
end
function fish_prompt
set_color -o red
printf '┌─<'
set_color -o blue
printf '%s ' (whoami)
set_color $fish_color_autosuggestion[1]
printf '@ '
set_color cyan
printf '%s ' (hostname|cut -d . -f 1)
set_color $fish_color_autosuggestion[1]
printf 'in '
set_color -o green
printf '%s' (prompt_pwd)
set_color -o red
printf '>'
echo
set_color -o red
printf '└─<'
set_color yellow
printf '%s' (__fish_git_prompt)
if [ (_is_git_dirty) ]
set_color blue
printf '* '
end
set_color -o red
printf '>──'
set_color yellow
printf '» '
set_color normal
end
\ No newline at end of file
themes/zish/fish_right_prompt.fish
deleted
100644 → 0
View file @
011bc012
function fish_right_prompt
set -l exit_code $status
if test $exit_code -ne 0
set_color red
else
set_color green
end
printf '%d' $exit_code
set_color yellow
printf ' < %s' (date +%H:%M:%S)
set_color normal
end
\ No newline at end of file
themes/zish/zish_preview.png
deleted
100644 → 0
View file @
011bc012
66.5 KB
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment