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
e5ef2da8
Commit
e5ef2da8
authored
May 10, 2015
by
Pablo Santiago Blum de Aguiar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refact(scorphish): set colors on top of method to use them onwards
parent
3ee86741
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
themes/scorphish/fish_prompt.fish
themes/scorphish/fish_prompt.fish
+12
-12
No files found.
themes/scorphish/fish_prompt.fish
View file @
e5ef2da8
...
...
@@ -57,14 +57,24 @@ end
function fish_prompt
set -l exit_code $status
set -l gray (set_color 666)
set -l cyan (set_color cyan)
set -l red (set_color red)
set -l normal (set_color normal)
set -l yellow (set_color ffcc00)
set -l orange (set_color ffb300)
set -l green (set_color green)
set -l pink (set_color ff99ff)
set -l dark_pink (set_color cc99ff)
set_color -o 666
printf '['
set_color -o blue
printf '%s' (prompt_pwd)
_prompt_rubies
(set_color -o 666) (set_color -o red)
_prompt_rubies
$gray $red
_prompt_virtualfish
(set_color -o 666) (set_color -o green)
_prompt_virtualfish
$gray $green
set_color -o 666
if set -q SCORPHISH_GIT_INFO_ON_FIRST_LINE
...
...
@@ -73,16 +83,6 @@ function fish_prompt
printf ']\n'
end
set -l gray (set_color 666)
set -l cyan (set_color cyan)
set -l red (set_color red)
set -l normal (set_color normal)
set -l yellow (set_color ffcc00)
set -l orange (set_color ffb300)
set -l green (set_color 80ff00)
set -l pink (set_color ff99ff)
set -l dark_pink (set_color cc99ff)
# Show git branch and dirty state
if [ (_git_branch_name) ]
set -l git_branch (_git_branch_name)
...
...
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