From 36ad7a6209792a5f1c12862669d6b5af76e502b0 Mon Sep 17 00:00:00 2001 From: Justin Hileman Date: Sun, 31 May 2015 08:30:50 -0700 Subject: [PATCH] [split] Move l theme to oh-my-fish/theme-l https://github.com/oh-my-fish/theme-l --- themes/l/fish_prompt.fish | 29 ----------------------------- themes/l/fish_right_prompt.fish | 29 ----------------------------- themes/l/readme.md | 25 ------------------------- 3 files changed, 83 deletions(-) delete mode 100644 themes/l/fish_prompt.fish delete mode 100644 themes/l/fish_right_prompt.fish delete mode 100644 themes/l/readme.md diff --git a/themes/l/fish_prompt.fish b/themes/l/fish_prompt.fish deleted file mode 100644 index 31d01f1..0000000 --- a/themes/l/fish_prompt.fish +++ /dev/null @@ -1,29 +0,0 @@ -# name: L -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 diff --git a/themes/l/fish_right_prompt.fish b/themes/l/fish_right_prompt.fish deleted file mode 100644 index ced537a..0000000 --- a/themes/l/fish_right_prompt.fish +++ /dev/null @@ -1,29 +0,0 @@ -# To show the right prompt please set -# set theme_display_rbenv 'yes' (config.fish) -# set theme_display_rbenv_gemset 'yes' (config.fish) - -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 - if [ "$theme_display_rbenv" = 'yes' ] - set -l red (set_color red) - set -l normal (set_color normal) - - set ruby_info $red(_ruby_version) - - if [ "$theme_display_rbenv_gemset" = 'yes' ] - if [ (_ruby_gemset) ] - set -l ruby_gemset $red(_ruby_gemset) - set ruby_info "$ruby_info@$ruby_gemset" - end - end - - echo -n -s $ruby_info $normal - end -end diff --git a/themes/l/readme.md b/themes/l/readme.md deleted file mode 100644 index b181660..0000000 --- a/themes/l/readme.md +++ /dev/null @@ -1,25 +0,0 @@ -## l - -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. - -![](http://f.cl.ly/items/2J3M0f2X1j3u471y080I/2.png) -![](http://f.cl.ly/items/2S25360U1p360E0D2u2g/3.png) -![](http://f.cl.ly/items/1w0s0Q3x3r2Z1F1l011k/4.png) - -#### Characteristics - -* Current branch -* Dirty working directory -* Working directory - -Only if fish_theme_l_right_prompt variable is set true within config.fish - -```fish -set theme_display_rbenv 'yes' -set theme_display_rbenv_gemset 'yes' -``` - -* Rbenv Ruby Version -* Rbenv Ruby Gemset - -![](http://f.cl.ly/items/0f0k3o2L3y2q1L3g1R1X/5.png)