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
ab57fc1d
Commit
ab57fc1d
authored
Feb 18, 2014
by
Zhishen (Jason) Wen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added theme "Zish" and preview
parent
0f14f1cd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
49 additions
and
0 deletions
+49
-0
themes/zish/fish_prompt.fish
themes/zish/fish_prompt.fish
+37
-0
themes/zish/fish_right_prompt.fish
themes/zish/fish_right_prompt.fish
+12
-0
themes/zish/zish_preview.png
themes/zish/zish_preview.png
+0
-0
No files found.
themes/zish/fish_prompt.fish
0 → 100644
View file @
ab57fc1d
# 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
0 → 100644
View file @
ab57fc1d
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
0 → 100644
View file @
ab57fc1d
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