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
6ae22a59
Commit
6ae22a59
authored
Feb 20, 2015
by
Rahul Trikha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merged lambda theme into l
Added a set fish_theme_l_right_prompt true variable to activate the right_prompt for l
parent
259caecf
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
40 additions
and
75 deletions
+40
-75
themes/l/fish_right_prompt.fish
themes/l/fish_right_prompt.fish
+28
-0
themes/l/readme.md
themes/l/readme.md
+12
-2
themes/lambda/README.md
themes/lambda/README.md
+0
-12
themes/lambda/fish_prompt.fish
themes/lambda/fish_prompt.fish
+0
-40
themes/lambda/fish_right_prompt.fish
themes/lambda/fish_right_prompt.fish
+0
-21
themes/lambda/screenshot.png
themes/lambda/screenshot.png
+0
-0
No files found.
themes/l/fish_right_prompt.fish
0 → 100644
View file @
6ae22a59
# To show the right prompt please set
# set fish_theme_l_right_prompt true (config.fish)
if test "$fish_theme_l_right_prompt" = true
function _ruby_version
echo (command rbenv version-name | sed 's/\n//')
end
function _ruby_gemset
echo (command rbenv gemset active ^/dev/null | sed -e 's| global||')
end
function fish_right_prompt
set -l red (set_color red)
set -l normal (set_color normal)
set ruby_info $red(_ruby_version)
if [ (_ruby_gemset) ]
set -l ruby_gemset $red(_ruby_gemset)
set ruby_info "$ruby_info@$ruby_gemset"
end
echo -n -s $ruby_info $normal
end
end
themes/l/readme.md
View file @
6ae22a59
...
...
@@ -6,9 +6,19 @@ A theme inspired by [oh-my-zsh](https://github.com/robbyrussell/oh-my-zsh/blob/m


#### Characteristics
*
Current branch
*
Dirty working directory
*
Working directory
\ No newline at end of file
*
Working directory
Only if fish_theme_l_right_prompt variable is set true within config.fish
```
fish
set fish_theme_l_right_prompt true
```
*
Rbenv Ruby Version
*
Rbenv Ruby Gemset

themes/lambda/README.md
deleted
100644 → 0
View file @
259caecf
## Lambda
A theme inspired by
[
oh-my-zsh
](
https://github.com/robbyrussell/oh-my-zsh/blob/master/themes/lambda.zsh-theme
)
's
[
lambda
](
http://zshthem.es/screenshots/lambda.png
)
theme.

#### Characteristics
*
Working directory
*
Git branch and dirty state (if inside a git repo)
*
Rbenv Ruby Version
*
Rbenv Ruby Gemset
themes/lambda/fish_prompt.fish
deleted
100644 → 0
View file @
259caecf
# name: lambda
# ---------------
# Based on oh-my-zsh lambda theme
#
# Display the following bits on the left:
# - Working directory
# - Git branch and dirty state (if inside a git repo)
#
# Display the following bits on the right:
# - Rbenv Ruby Version
# - Rbenv Ruby Gemset# - Current directory name
function _git_branch_name
echo (command git symbolic-ref HEAD ^/dev/null | sed -e 's|^refs/heads/||')
end
function _is_git_dirty
echo (command git status -s --ignore-submodules=dirty ^/dev/null)
end
function fish_prompt
set -l blue (set_color blue)
set -l green (set_color green)
set -l normal (set_color normal)
set -l arrow "λ"
set -l cwd $blue(basename (prompt_pwd))
if [ (_git_branch_name) ]
set git_info $green(_git_branch_name)
set git_info ":$git_info"
if [ (_is_git_dirty) ]
set -l dirty "*"
set git_info "$git_info$dirty"
end
end
echo -n -s $cwd $git_info $normal ' ' $arrow ' '
end
themes/lambda/fish_right_prompt.fish
deleted
100644 → 0
View file @
259caecf
function _ruby_version
echo (command rbenv version-name | sed 's/\n//')
end
function _ruby_gemset
echo (command rbenv gemset active ^/dev/null | sed -e 's| global||')
end
function fish_right_prompt
set -l red (set_color red)
set -l normal (set_color normal)
set ruby_info $red(_ruby_version)
if [ (_ruby_gemset) ]
set -l ruby_gemset $red(_ruby_gemset)
set ruby_info "$ruby_info@$ruby_gemset"
end
echo -n -s $ruby_info $normal
end
themes/lambda/screenshot.png
deleted
100644 → 0
View file @
259caecf
20.6 KB
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