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
403e5652
Commit
403e5652
authored
Apr 04, 2015
by
Jorge Bucaran
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #418 from joar/master
Add fisk theme
parents
e769d482
8063d084
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
73 additions
and
0 deletions
+73
-0
themes/fisk/README.md
themes/fisk/README.md
+12
-0
themes/fisk/_fisk_concat.fish
themes/fisk/_fisk_concat.fish
+5
-0
themes/fisk/fish_prompt.fish
themes/fisk/fish_prompt.fish
+56
-0
No files found.
themes/fisk/README.md
0 → 100644
View file @
403e5652
# 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/_fisk_concat.fish
0 → 100644
View file @
403e5652
function _fisk_concat
for i in $argv
echo -n $i;
end
end
themes/fisk/fish_prompt.fish
0 → 100644
View file @
403e5652
function fish_prompt --description 'Write out the prompt'
set last_ret $status
# Palette
set -l base01 55f
set -l base02 55a
set -l base03 777
set -l c_error f77
set -l c_success 7f7
set -l c_yellow ff5
set -l c_magenta f0d
# 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 (_fisk_concat " " (set_color $c_magenta) "(" (basename "$VIRTUAL_ENV") ")" (set_color normal))
else
set venv ""
end
set ret_color $c_success
if test $last_ret -gt 0
set ret_color $c_error
end
set -l ret_part (_fisk_concat \
(set_color $base03) '[' \
(set_color $ret_color) $last_ret \
(set_color $base03) ']' \
)
set -l user_part (_fisk_concat \
(set_color $base01) $USER \
(set_color $base02) @ \
(set_color $base01) $__fish_prompt_hostname \
)
# Virtualenv, git, &c.
set -l context_part (_fisk_concat \
$__fish_prompt_cwd (prompt_pwd) $venv (set_color -o $c_yellow) (__fish_git_prompt) \
)
set -l prompt_end (_fisk_concat (set_color $base01) '➞')
echo -n (_fisk_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