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
ceeb4de3
Commit
ceeb4de3
authored
Oct 28, 2013
by
Bruno
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #75 from godfat/theme-git-status-fix
themes/gitstatus: Fix where it shows extra a space
parents
0f3aff49
10f36245
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
themes/gitstatus/fish_prompt.fish
themes/gitstatus/fish_prompt.fish
+8
-3
No files found.
themes/gitstatus/fish_prompt.fish
View file @
ceeb4de3
...
...
@@ -20,7 +20,7 @@ function _git_status_symbol
end
function _remote_hostname
if test
$SSH_CONNECTION
if test
-n "$SSH_CONNECTION"
echo (whoami)@(hostname)
end
end
...
...
@@ -28,8 +28,13 @@ end
function fish_prompt
set -l cyan (set_color cyan)
set -l normal (set_color normal)
set -l cwd (set_color $fish_color_cwd)(prompt_pwd)
set -l git_status (_git_status_symbol)(_git_branch_name)
if test -n "$git_status"
set git_status " $git_status"
end
echo -n (_remote_hostname) \
$cwd $cyan(_git_status_symbol)(_git_branch_name)$normal'> '
echo -n (_remote_hostname) $cwd$cyan$git_status$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