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
0e1ae7e1
Commit
0e1ae7e1
authored
Oct 24, 2014
by
Bruno
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #234 from hsharrison/upstream
add virtualenv section to agnoster-mercurial prompt
parents
ba840696
adcaa839
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
themes/agnoster-mercurial/fish_prompt.fish
themes/agnoster-mercurial/fish_prompt.fish
+7
-0
No files found.
themes/agnoster-mercurial/fish_prompt.fish
View file @
0e1ae7e1
...
@@ -88,6 +88,12 @@ end
...
@@ -88,6 +88,12 @@ end
# Theme components
# Theme components
# ===========================
# ===========================
function prompt_virtual_env -d "Display Python virtual environment"
if test "$VIRTUAL_ENV"
prompt_segment white black (basename $VIRTUAL_ENV)
end
end
function prompt_user -d "Display actual user if different from $default_user"
function prompt_user -d "Display actual user if different from $default_user"
if [ "$theme_display_user" = "yes" ]
if [ "$theme_display_user" = "yes" ]
if [ "$USER" != "$default_user" -o -n "$SSH_CLIENT" ]
if [ "$USER" != "$default_user" -o -n "$SSH_CLIENT" ]
...
@@ -166,6 +172,7 @@ end
...
@@ -166,6 +172,7 @@ end
function fish_prompt
function fish_prompt
set -g RETVAL $status
set -g RETVAL $status
prompt_status
prompt_status
prompt_virtual_env
prompt_user
prompt_user
prompt_dir
prompt_dir
prompt_hg
prompt_hg
...
...
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