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
6b4f483d
Commit
6b4f483d
authored
Aug 04, 2014
by
Joseph Tannhuber
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
don't change cursor color if terminal doesn't support it
parent
cbb1f8d9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
4 deletions
+15
-4
themes/budspencer/fish_prompt.fish
themes/budspencer/fish_prompt.fish
+15
-4
No files found.
themes/budspencer/fish_prompt.fish
View file @
6b4f483d
###############################################################################
#
# prompt theme name: budspencer
#
#
# description: a sophisticated airline/powerline theme
#
# author: Joseph Tannhuber
...
...
@@ -11,8 +11,19 @@
###############################################################################
# Color definitions
###############################################################################
# define colors
set -g budspencer_colors 000000 083743 445659 fdf6e3 b58900 cb4b16 dc121f af005f 6c71c4 268bd2 2aa198 859900
# cursor colors
set -g budspencer_cursors "\033]12;#$budspencer_colors[10]\007" "\033]12;#$budspencer_colors[5]\007" "\033]12;#$budspencer_colors[8]\007"
set -l unsupported_terminals "fbterm" "st" "linux" "screen"
for term in $unsupported_terminals
if test $term = $TERM
set -g budspencer_cursors "" "" ""
end
end
###############################################################################
# Utils
###############################################################################
...
...
@@ -38,17 +49,17 @@ function fish_vi_prompt_cm --description "Displays the current mode"
switch $fish_bind_mode
case default
set_color -b $budspencer_colors[10] $budspencer_colors[1]
echo -en
"\033]12;#$budspencer_colors[10]\007"
echo -en
$budspencer_cursors[1]
echo -n " NORMAL "
set_color -b $budspencer_colors[1] $budspencer_colors[10]
case insert
set_color -b $budspencer_colors[5] $budspencer_colors[1]
echo -en
"\033]12;#$budspencer_colors[5]\007"
echo -en
$budspencer_cursors[2]
echo -n " INSERT "
set_color -b $budspencer_colors[1] $budspencer_colors[5]
case visual
set_color -b $budspencer_colors[8] $budspencer_colors[1]
echo -en
"\033]12;#$budspencer_colors[8]\007"
echo -en
$budspencer_cursors[3]
echo -n " VISUAL "
set_color -b $budspencer_colors[1] $budspencer_colors[8]
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