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
b8426119
Commit
b8426119
authored
Aug 04, 2014
by
Joseph Tannhuber
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed git toggle command from ',,' to '#'
parent
6b4f483d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
18 deletions
+18
-18
themes/budspencer/README.md
themes/budspencer/README.md
+1
-1
themes/budspencer/fish_prompt.fish
themes/budspencer/fish_prompt.fish
+2
-2
themes/budspencer/fish_right_prompt.fish
themes/budspencer/fish_right_prompt.fish
+15
-15
No files found.
themes/budspencer/README.md
View file @
b8426119
...
...
@@ -19,7 +19,7 @@ Translation of zsh's prezto [budspencer theme][budspencer]
-
Last command's duration time
-
Git status
*
style can be toggled in NORMAL and in VISUAL mode with
`
,,
`
between
*
style can be toggled in NORMAL and in VISUAL mode with
`
#
`
between
-
`symbols`
(shows git status symbols, see below)
-
`counts`
(shows amount of files that are affected)
*
symbols:
...
...
themes/budspencer/fish_prompt.fish
View file @
b8426119
...
...
@@ -45,7 +45,7 @@ function __budspencer_git_branch_name -d "Return the current branch name"
end
end
function fish_vi_prompt_cm -
-description
"Displays the current mode"
function fish_vi_prompt_cm -
d
"Displays the current mode"
switch $fish_bind_mode
case default
set_color -b $budspencer_colors[10] $budspencer_colors[1]
...
...
@@ -65,7 +65,7 @@ function fish_vi_prompt_cm --description "Displays the current mode"
end
end
function fish_prompt_symbols -
-description
"Display symbols"
function fish_prompt_symbols -
d
"Display symbols"
set_color -b $budspencer_colors[2]
echo -n ""
# indicator for vim parent process
...
...
themes/budspencer/fish_right_prompt.fish
View file @
b8426119
...
...
@@ -30,7 +30,7 @@ function __budspencer_is_git_stashed -d "Check if there are stashed commits"
end
set git_style "symbols"
function fish_git_toggle_cm -
-description "Toggles style of git segment, press ,, in NORM
AL mode"
function fish_git_toggle_cm -
d "Toggles style of git segment, press # in NORMAL or VISU
AL mode"
if test $git_style = "symbols"
set git_style "counts"
else
...
...
@@ -38,14 +38,14 @@ function fish_git_toggle_cm --description "Toggles style of git segment, press ,
end
commandline -f repaint
end
bind -M default '
,,
' fish_git_toggle_cm
bind -M visual '
,,
' fish_git_toggle_cm
bind -M default '
#
' fish_git_toggle_cm
bind -M visual '
#
' fish_git_toggle_cm
if set -q -x $PWDSTYLE
set -x PWDSTYLE short long none
end
set pwd_style $PWDSTYLE[1]
function fish_pwd_toggle_cm -
-description "Toggles style of pwd segment, press space bar in NORM
AL mode"
function fish_pwd_toggle_cm -
d "Toggles style of pwd segment, press space bar in NORMAL or VISU
AL mode"
for i in (seq 1 (count $PWDSTYLE))
if test $PWDSTYLE[$i] = $pwd_style
set pwd_style $PWDSTYLE[(math $i%(count $PWDSTYLE)+1)]
...
...
@@ -68,7 +68,7 @@ function fish_cmd_duration_cm -d "Displays the elapsed time of last command"
end
end
function fish_git_prompt_cm -
-description
"Displays the git symbols"
function fish_git_prompt_cm -
d
"Displays the git symbols"
set -l git_prompt ""
set -l is_repo (command git rev-parse --is-inside-work-tree ^/dev/null)
if test $is_repo="true"
...
...
@@ -79,7 +79,7 @@ function fish_git_prompt_cm --description "Displays the git symbols"
if test $git_style = "symbols"
set git_prompt (set_color -o $budspencer_colors[5])" ↑"
else
set git_prompt (set_color
-o
$budspencer_colors[5])" "$git_ahead_behind[1]
set git_prompt (set_color $budspencer_colors[5])" "$git_ahead_behind[1]
end
end
...
...
@@ -87,7 +87,7 @@ function fish_git_prompt_cm --description "Displays the git symbols"
if test $git_style = "symbols"
set git_prompt $git_prompt(set_color -o $budspencer_colors[5])" ↓"
else
set git_prompt $git_prompt(set_color
-o
$budspencer_colors[5])" "$git_ahead_behind[2]
set git_prompt $git_prompt(set_color $budspencer_colors[5])" "$git_ahead_behind[2]
end
end
end
...
...
@@ -97,7 +97,7 @@ function fish_git_prompt_cm --description "Displays the git symbols"
if test $git_style = "symbols"
set git_prompt $git_prompt(set_color -o $budspencer_colors[12])" +"
else
set git_prompt $git_prompt(set_color
-o
$budspencer_colors[12])" "$git_status[1]
set git_prompt $git_prompt(set_color $budspencer_colors[12])" "$git_status[1]
end
end
...
...
@@ -105,7 +105,7 @@ function fish_git_prompt_cm --description "Displays the git symbols"
if test $git_style = "symbols"
set git_prompt $git_prompt(set_color -o $budspencer_colors[7])" –"
else
set git_prompt $git_prompt(set_color
-o
$budspencer_colors[7])" "$git_status[2]
set git_prompt $git_prompt(set_color $budspencer_colors[7])" "$git_status[2]
end
end
...
...
@@ -113,7 +113,7 @@ function fish_git_prompt_cm --description "Displays the git symbols"
if test $git_style = "symbols"
set git_prompt $git_prompt(set_color -o $budspencer_colors[10])" ✱"
else
set git_prompt $git_prompt(set_color
-o
$budspencer_colors[10])" "$git_status[3]
set git_prompt $git_prompt(set_color $budspencer_colors[10])" "$git_status[3]
end
end
...
...
@@ -121,7 +121,7 @@ function fish_git_prompt_cm --description "Displays the git symbols"
if test $git_style = "symbols"
set git_prompt $git_prompt(set_color -o $budspencer_colors[8])" →"
else
set git_prompt $git_prompt(set_color
-o
$budspencer_colors[8])" "$git_status[4]
set git_prompt $git_prompt(set_color $budspencer_colors[8])" "$git_status[4]
end
end
...
...
@@ -129,7 +129,7 @@ function fish_git_prompt_cm --description "Displays the git symbols"
if test $git_style = "symbols"
set git_prompt $git_prompt(set_color -o $budspencer_colors[9])" ═"
else
set git_prompt $git_prompt(set_color
-o
$budspencer_colors[9])" "$git_status[5]
set git_prompt $git_prompt(set_color $budspencer_colors[9])" "$git_status[5]
end
end
...
...
@@ -137,7 +137,7 @@ function fish_git_prompt_cm --description "Displays the git symbols"
if test $git_style = "symbols"
set git_prompt $git_prompt(set_color -o $budspencer_colors[4])" ●"
else
set git_prompt $git_prompt(set_color
-o
$budspencer_colors[4])" "$git_status[6]
set git_prompt $git_prompt(set_color $budspencer_colors[4])" "$git_status[6]
end
end
...
...
@@ -146,7 +146,7 @@ function fish_git_prompt_cm --description "Displays the git symbols"
if test $git_style = "symbols"
set git_prompt $git_prompt(set_color -o $budspencer_colors[11])" ✭"
else
set git_prompt $git_prompt(set_color
-o
$budspencer_colors[11])" "$git_stashed
set git_prompt $git_prompt(set_color $budspencer_colors[11])" "$git_stashed
end
end
echo -n $git_prompt
...
...
@@ -154,7 +154,7 @@ function fish_git_prompt_cm --description "Displays the git symbols"
end
end
function fish_pwd_prompt_cm -
-description
"Displays the present working directory"
function fish_pwd_prompt_cm -
d
"Displays the present working directory"
set -l user_host " "
if test (count $SSH_CLIENT) -gt 0
set user_host " "$USER"@"(hostname)
...
...
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