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
bd4342d2
Commit
bd4342d2
authored
Feb 16, 2015
by
Joar Wandborg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add fisk theme
parent
6fad105d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
67 additions
and
0 deletions
+67
-0
themes/fisk/README.md
themes/fisk/README.md
+12
-0
themes/fisk/concat.fish
themes/fisk/concat.fish
+5
-0
themes/fisk/fish_prompt.fish
themes/fisk/fish_prompt.fish
+50
-0
No files found.
themes/fisk/README.md
0 → 100644
View file @
bd4342d2
# Fisk

A nice dark blue-green theme with support for:
-
Last exit code
-
Current git HEAD
-
Current python virtualenv
By
[
joar
](
https://github.com/joar
)
, thanks to
[
adisbladis
](
https://github.com/adisbladis
)
for the starting point.
themes/fisk/concat.fish
0 → 100644
View file @
bd4342d2
function concat
for i in $argv
echo -n $i;
end
end
themes/fisk/fish_prompt.fish
0 → 100644
View file @
bd4342d2
function fish_prompt --description 'Write out the prompt'
set last_ret $status
# Just calculate these once, to save a few cycles when displaying the prompt
if not set -q __fish_prompt_hostname
set -g __fish_prompt_hostname (hostname|cut -d . -f 1)
end
if not set -q __fish_prompt_cwd
set -g __fish_prompt_cwd (set_color $fish_color_cwd)
end
/if set -q VIRTUAL_ENV
set venv (echo -n -s " " (set_color ff00de) "(" (basename "$VIRTUAL_ENV") ")" (set_color normal))
else
set venv ""
end
git branch > /dev/null ^ /dev/null
if [ $status = 0 ]
set branch (concat (set_color -o blue) "(" (basename (git rev-parse --show-toplevel)) ")")
else
set branch ""
end
set ret_color 7f7
if [ $last_ret -gt 0 ]
set ret_color f77
end
set -l ret_part (concat \
(set_color 777) '[' \
(set_color $ret_color) $last_ret \
(set_color 777) ']' \
)
set -l user_part (concat \
(set_color 55f) $USER \
(set_color 55a) @ \
(set_color 55f) $__fish_prompt_hostname \
)
set -l _context_part (concat \
"$__fish_prompt_cwd" (prompt_pwd) "$venv" (set_color -o yellow) (__fish_git_prompt) \
)
set -l prompt_end (concat (set_color 55f) '➞')
echo -n (concat $ret_part " " $user_part " " $_context_part " " $prompt_end (set_color normal) " ")
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