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
4996bb18
Commit
4996bb18
authored
Aug 09, 2012
by
Bruno Pinto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Closes #3: Remove dependency of git plugin from robbyrussell theme
parent
64cd07ae
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
9 deletions
+11
-9
plugins/git/git_branch_name.fish
plugins/git/git_branch_name.fish
+0
-3
plugins/git/is_git_dirty.fish
plugins/git/is_git_dirty.fish
+0
-3
themes/robbyrussell/fish_prompt.fish
themes/robbyrussell/fish_prompt.fish
+11
-3
No files found.
plugins/git/git_branch_name.fish
deleted
100644 → 0
View file @
64cd07ae
function git_branch_name
echo (git symbolic-ref HEAD ^/dev/null | sed -e 's|^refs/heads/||')
end
plugins/git/is_git_dirty.fish
deleted
100644 → 0
View file @
64cd07ae
function is_git_dirty
echo (git status -s --ignore-submodules=dirty ^/dev/null)
end
themes/robbyrussell/fish_prompt.fish
View file @
4996bb18
function _git_branch_name
echo (git symbolic-ref HEAD ^/dev/null | sed -e 's|^refs/heads/||')
end
function _is_git_dirty
echo (git status -s --ignore-submodules=dirty ^/dev/null)
end
function fish_prompt
set -l cyan (set_color -o cyan)
set -l yellow (set_color -o yellow)
...
...
@@ -8,11 +16,11 @@ function fish_prompt
set -l arrow "$red➜ "
set -l cwd $cyan(basename (prompt_pwd))
if [ (git_branch_name) ]
set -l git_branch $red(git_branch_name)
if [ (
_
git_branch_name) ]
set -l git_branch $red(
_
git_branch_name)
set git_info "$blue git:($git_branch$blue)"
if [ (is_git_dirty) ]
if [ (
_
is_git_dirty) ]
set -l dirty "$yellow ✗"
set git_info "$git_info$dirty"
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