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
f37fb11f
Commit
f37fb11f
authored
May 31, 2015
by
Justin Hileman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[split] Move toaster theme to oh-my-fish/theme-toaster
https://github.com/oh-my-fish/theme-toaster
parent
c9b369bc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
80 deletions
+0
-80
themes/toaster/README.md
themes/toaster/README.md
+0
-5
themes/toaster/fish_prompt.fish
themes/toaster/fish_prompt.fish
+0
-75
No files found.
themes/toaster/README.md
deleted
100644 → 0
View file @
c9b369bc
# Toaster
A fish (shell) theme with a poptart cat and a rainbow that signifies git status.

themes/toaster/fish_prompt.fish
deleted
100644 → 0
View file @
c9b369bc
set __toaster_color_orange FD971F
set __toaster_color_blue 6EC9DD
set __toaster_color_green A6E22E
set __toaster_color_yellow E6DB7E
set __toaster_color_pink F92672
set __toaster_color_grey 554F48
set __toaster_color_white F1F1F1
set __toaster_color_purple 9458FF
set __toaster_color_lilac AE81FF
function __toaster_color_echo
set_color $argv[1]
if test (count $argv) -eq 2
echo -n $argv[2]
end
end
function __toaster_current_folder
if test $PWD = '/'
echo -n '/'
else
echo -n $PWD | grep -o -E '[^\/]+$'
end
end
function __toaster_git_status_codes
echo (git status --porcelain ^/dev/null | sed -E 's/(^.{3}).*/\1/' | tr -d ' \n')
end
function __toaster_git_branch_name
echo (git rev-parse --abbrev-ref HEAD ^/dev/null)
end
function __toaster_rainbow
if echo $argv[1] | grep -q -e $argv[3]
__toaster_color_echo $argv[2] "彡ミ"
end
end
function __toaster_git_status_icons
set -l git_status (__toaster_git_status_codes)
__toaster_rainbow $git_status $__toaster_color_pink 'D'
__toaster_rainbow $git_status $__toaster_color_orange 'R'
__toaster_rainbow $git_status $__toaster_color_white 'C'
__toaster_rainbow $git_status $__toaster_color_green 'A'
__toaster_rainbow $git_status $__toaster_color_blue 'U'
__toaster_rainbow $git_status $__toaster_color_lilac 'M'
__toaster_rainbow $git_status $__toaster_color_grey '?'
end
function __toaster_git_status
# In git
if test -n (__toaster_git_branch_name)
__toaster_color_echo $__toaster_color_blue " git"
__toaster_color_echo $__toaster_color_white ":"(__toaster_git_branch_name)
if test -n (__toaster_git_status_codes)
__toaster_color_echo $__toaster_color_pink ' ●'
__toaster_color_echo $__toaster_color_white ' [^._.^]ノ'
__toaster_git_status_icons
else
__toaster_color_echo $__toaster_color_green ' ○'
end
end
end
function fish_prompt
__toaster_color_echo $__toaster_color_blue "# "
__toaster_color_echo $__toaster_color_purple (__toaster_current_folder)
__toaster_git_status
echo
__toaster_color_echo $__toaster_color_pink "\$ "
end
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