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
eec81de1
Commit
eec81de1
authored
Nov 22, 2014
by
Roman Inflianskas
Committed by
Bruno Pinto
Nov 28, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bobthefish: allow user disable segments
Conflicts: themes/bobthefish/fish_prompt.fish
parent
0e76751e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
themes/bobthefish/fish_prompt.fish
themes/bobthefish/fish_prompt.fish
+10
-0
No files found.
themes/bobthefish/fish_prompt.fish
View file @
eec81de1
...
...
@@ -12,9 +12,16 @@
#
# You can override some default options in your config.fish:
#
# set -g theme_display_git no
# set -g theme_display_hg no
# set -g theme_display_virtualenv no
# set -g theme_display_user yes
# set -g default_user your_normal_user
set -q theme_display_git; or set -g theme_display_git yes
set -q theme_display_hg; or set -g theme_display_hg yes
set -q theme_display_virtualenv; or set -g theme_display_virtualenv yes
set -g __bobthefish_current_bg NONE
# Powerline glyphs
...
...
@@ -95,10 +102,12 @@ function __bobthefish_pretty_parent -d 'Print a parent directory, shortened to f
end
function __bobthefish_git_project_dir -d 'Print the current git project base directory'
[ "$theme_display_git" = 'yes' ]; or return
command git rev-parse --show-toplevel ^/dev/null
end
function __bobthefish_hg_project_dir -d 'Print the current hg project base directory'
[ "$theme_display_hg" = 'yes' ]; or return
set d (pwd)
while not [ $d = / ]
if test -e $d/.hg
...
...
@@ -331,6 +340,7 @@ function __bobthefish_virtualenv_python_version -d 'Get current python version'
end
function __bobthefish_prompt_virtualfish -d "Display activated virtual environment (only for virtualfish, virtualenv's activate.fish changes prompt by itself)"
[ "$theme_display_virtualenv" = 'yes' ]; or return
set -q VIRTUAL_ENV; or return
set -l version_glyph (__bobthefish_virtualenv_python_version)
if [ "$version_glyph" ]
...
...
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