diff --git a/themes/cor/README.md b/themes/cor/README.md deleted file mode 100644 index eab2937..0000000 --- a/themes/cor/README.md +++ /dev/null @@ -1,24 +0,0 @@ -## cor - -The name says it all - -![cor theme](https://f.cloud.github.com/assets/516068/692075/a30d9080-dbf6-11e2-8dd3-d07cce41259d.png) - -For this theme you need a emoji supporting terminal and the emoji-clock plugin - -* emoji-clock -* Git -* Unicode-compatible fonts and terminals (I use iTerm2 on OSX) - -#### Characteristics - -##### Left side prompt -* If the previous command failed (✘) -* User @ Hostname -* Abbriviated path -* Emoji-clock - -##### Right side prompt -* Branch -* Git status clean dirty (*) -* Time of last command diff --git a/themes/cor/fish_prompt.fish b/themes/cor/fish_prompt.fish deleted file mode 100644 index 225e61e..0000000 --- a/themes/cor/fish_prompt.fish +++ /dev/null @@ -1,47 +0,0 @@ -# name: Cor -# Display the following bits on the left: -# * Virtualenv name (if applicable, see https://github.com/adambrenecki/virtualfish) -# * Current user -# * Current compressed directory name -# * return status if not 0 - -function fish_prompt - set -l last_status $status - set -l yellow (set_color ffff33) - set -l dark_yellow (set_color ffb266) - set -l red (set_color red) - set -l green (set_color 80ff00) - set -l normal (set_color normal) - set -l dark_green (set_color 006600) - - set -l cwd $cyan(basename (prompt_pwd)) - - # Prompt - set -l prompt - if [ "$UID" = "0" ] - set prompt "$red# " - else - set prompt "$normal% " - end - - # output the prompt, left to right - - # Add a newline before prompts - #echo -e "" - - # Display [venvname] if in a virtualenv - if set -q VIRTUAL_ENV - echo -n -s (set_color -b cyan black) '[' (basename "$VIRTUAL_ENV") ']' $normal ' ' - end - if test $last_status -ne 0 - set ret_status $red $last_status '↵' $normal - end - - # Display the current directory name - echo -n -s $green (whoami) $dark_green @ $green (hostname|cut -d . -f 1) $dark_green › $yellow (prompt_pwd) $ret_status $dark_yellow (emoji-clock) ' ⁑' $normal - #echo -n -s $green (whoami) $dark_green @ $green (hostname|cut -d . -f 1) $dark_green › $yellow (prompt_pwd) $ret_status $dark_yellow ⁑ $normal - - # Terminate with a nice prompt char - echo -n -s ' ' $normal - -end diff --git a/themes/cor/fish_right_prompt.fish b/themes/cor/fish_right_prompt.fish deleted file mode 100644 index d6ffb42..0000000 --- a/themes/cor/fish_right_prompt.fish +++ /dev/null @@ -1,34 +0,0 @@ -# Display git branch and dirty bit and current time on the right - -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_right_prompt - set -l cyan (set_color cyan) - set -l red (set_color red) - set -l normal (set_color normal) - set -l yellow (set_color cccc00) - set -l green (set_color 80ff00) - set -l pink (set_color ff99ff) - set -l dark_pink (set_color cc99ff) - - - # Show git branch and dirty state - if [ (_git_branch_name) ] - set -l git_branch (_git_branch_name) - - if [ (_is_git_dirty) ] - echo -n -s $cyan '‹' $yellow $git_branch $red '*' $cyan '›' $normal - else - echo -n -s $cyan '‹' $yellow $git_branch $cyan '›' $normal - end - end - - echo -n -s $pink ' [' $dark_pink (date +%H:%M:%S) $pink '] ' - -end