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
1e989310
Commit
1e989310
authored
Nov 23, 2014
by
Justin Hileman
Committed by
Bruno Pinto
Nov 28, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[bobthefish] Default display configs to yes
parent
eec81de1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
themes/bobthefish/fish_prompt.fish
themes/bobthefish/fish_prompt.fish
+5
-8
No files found.
themes/bobthefish/fish_prompt.fish
View file @
1e989310
...
@@ -15,13 +15,10 @@
...
@@ -15,13 +15,10 @@
# set -g theme_display_git no
# set -g theme_display_git no
# set -g theme_display_hg no
# set -g theme_display_hg no
# set -g theme_display_virtualenv no
# set -g theme_display_virtualenv no
# set -g theme_display_ruby no
# set -g theme_display_user yes
# set -g theme_display_user yes
# set -g default_user your_normal_user
# 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
set -g __bobthefish_current_bg NONE
# Powerline glyphs
# Powerline glyphs
...
@@ -102,12 +99,12 @@ function __bobthefish_pretty_parent -d 'Print a parent directory, shortened to f
...
@@ -102,12 +99,12 @@ function __bobthefish_pretty_parent -d 'Print a parent directory, shortened to f
end
end
function __bobthefish_git_project_dir -d 'Print the current git project base directory'
function __bobthefish_git_project_dir -d 'Print the current git project base directory'
[ "$theme_display_git" = '
yes' ]; or
return
[ "$theme_display_git" = '
no' ]; and
return
command git rev-parse --show-toplevel ^/dev/null
command git rev-parse --show-toplevel ^/dev/null
end
end
function __bobthefish_hg_project_dir -d 'Print the current hg project base directory'
function __bobthefish_hg_project_dir -d 'Print the current hg project base directory'
[ "$theme_display_hg" = '
yes' ]; or
return
[ "$theme_display_hg" = '
no' ]; and
return
set d (pwd)
set d (pwd)
while not [ $d = / ]
while not [ $d = / ]
if test -e $d/.hg
if test -e $d/.hg
...
@@ -340,8 +337,7 @@ function __bobthefish_virtualenv_python_version -d 'Get current python version'
...
@@ -340,8 +337,7 @@ function __bobthefish_virtualenv_python_version -d 'Get current python version'
end
end
function __bobthefish_prompt_virtualfish -d "Display activated virtual environment (only for virtualfish, virtualenv's activate.fish changes prompt by itself)"
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
[ "$theme_display_virtualenv" = 'no' -o -z "$VIRTUAL_ENV" ]; and return
set -q VIRTUAL_ENV; or return
set -l version_glyph (__bobthefish_virtualenv_python_version)
set -l version_glyph (__bobthefish_virtualenv_python_version)
if [ "$version_glyph" ]
if [ "$version_glyph" ]
__bobthefish_start_segment $__bobthefish_med_blue $__bobthefish_lt_grey
__bobthefish_start_segment $__bobthefish_med_blue $__bobthefish_lt_grey
...
@@ -353,6 +349,7 @@ function __bobthefish_prompt_virtualfish -d "Display activated virtual environme
...
@@ -353,6 +349,7 @@ function __bobthefish_prompt_virtualfish -d "Display activated virtual environme
end
end
function __bobthefish_prompt_rubies -d 'Display current Ruby (rvm/rbenv)'
function __bobthefish_prompt_rubies -d 'Display current Ruby (rvm/rbenv)'
[ "$theme_display_ruby" = 'no' ]; and return
set -l ruby_version
set -l ruby_version
if type rvm-prompt >/dev/null
if type rvm-prompt >/dev/null
set ruby_version (rvm-prompt i v g)
set ruby_version (rvm-prompt i v g)
...
...
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