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
cf5b5aba
Commit
cf5b5aba
authored
Nov 26, 2014
by
Bruno Pinto
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #251 from tannhuber/master
parents
01adb417
fce4cadd
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
709 additions
and
697 deletions
+709
-697
themes/budspencer/README.md
themes/budspencer/README.md
+2
-1
themes/budspencer/fish_greeting.fish
themes/budspencer/fish_greeting.fish
+32
-32
themes/budspencer/fish_prompt.fish
themes/budspencer/fish_prompt.fish
+504
-494
themes/budspencer/fish_right_prompt.fish
themes/budspencer/fish_right_prompt.fish
+171
-170
No files found.
themes/budspencer/README.md
View file @
cf5b5aba
...
...
@@ -171,7 +171,8 @@ It makes the commandline as powerful as your editor. If `$EDITOR` is not set,
vi is used.
The following shortcut needs vi mode:
-
Type
`.`
in NORMAL mode to edit commandline in editor.
-
Type
`.`
in NORMAL mode or
`\cv`
in NORMAL/INSERT mode to edit commandline in
editor.
## Sessions
...
...
themes/budspencer/fish_greeting.fish
View file @
cf5b5aba
themes/budspencer/fish_prompt.fish
View file @
cf5b5aba
This diff is collapsed.
Click to expand it.
themes/budspencer/fish_right_prompt.fish
View file @
cf5b5aba
...
...
@@ -94,19 +94,20 @@ function __budspencer_git_status -d 'Check git status'
end
function __budspencer_is_git_stashed -d 'Check if there are stashed commits'
command git stash list ^ /dev/null
| wc -l
command git log --format="%gd" -g $argv 'refs/stash' -- ^ /dev/null
| wc -l
end
function __budspencer_prompt_git_symbols -d 'Displays the git symbols'
set -l is_repo (command git rev-parse --is-inside-work-tree ^/dev/null)
if [ -z $is_repo ]
return
end
set -l git_ahead_behind (__budspencer_is_git_ahead_or_behind)
set -l git_status (__budspencer_git_status)
set -l git_stashed (__budspencer_is_git_stashed)
if begin
[ $is_repo=true ]
[ (expr $git_status[1] + $git_status[2] + $git_status[3] + $git_status[4] + $git_status[5] + $git_status[6]) -ne 0 ]
end
if [ (expr $git_status[1] + $git_status[2] + $git_status[3] + $git_status[4] + $git_status[5] + $git_status[6] + $git_stashed) -ne 0 ]
set_color $budspencer_colors[3]
echo -n ''
set_color -b $budspencer_colors[3]
...
...
@@ -219,7 +220,7 @@ function __budspencer_prompt_pwd -d 'Displays the present working directory'
case short
echo -n $user_host(prompt_pwd)' '
case long
echo -n $user_host$PWD
' '
echo -n $user_host(pwd)
' '
end
else
echo -n " $budspencer_prompt_error "
...
...
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