From 5d532cde53842ca9c5ada3f4a24f390af4c6a3ef Mon Sep 17 00:00:00 2001 From: Justin Hileman Date: Sun, 31 May 2015 08:30:50 -0700 Subject: [PATCH] [split] Move gnuykeaj theme to oh-my-fish/theme-gnuykeaj https://github.com/oh-my-fish/theme-gnuykeaj --- themes/gnuykeaj/README.md | 6 ---- themes/gnuykeaj/fish_prompt.fish | 57 -------------------------------- 2 files changed, 63 deletions(-) delete mode 100644 themes/gnuykeaj/README.md delete mode 100644 themes/gnuykeaj/fish_prompt.fish diff --git a/themes/gnuykeaj/README.md b/themes/gnuykeaj/README.md deleted file mode 100644 index 3ffc07d..0000000 --- a/themes/gnuykeaj/README.md +++ /dev/null @@ -1,6 +0,0 @@ -# Fish Theme: gnuykeaj - -Super minimal one line version of [clearance](https://github.com/bpinto/oh-my-fish/tree/master/themes/clearance) theme. Balance between need to know information and space. Has git branch and dirty state information based on the color of the branch name. - -![gnuykjeatheme](https://raw.githubusercontent.com/andyklimczak/oh-my-fish/gnuykeaj-screenshot/themes/gnuykeaj/gnuykeaj-preview.png) - diff --git a/themes/gnuykeaj/fish_prompt.fish b/themes/gnuykeaj/fish_prompt.fish deleted file mode 100644 index ca67c0e..0000000 --- a/themes/gnuykeaj/fish_prompt.fish +++ /dev/null @@ -1,57 +0,0 @@ -# name: gnuykeaj -# --------------- -# Based on clearance, which is based off idan. -# 1 line minimal, beautiful version of clearance. -# Display the following bits on the left: -# - Virtualenv name (if applicable, see https://github.com/adambrenecki/virtualfish) -# - Current directory name -# - Git branch and dirty state (if inside a git repo) - -function _git_branch_name - echo (command git symbolic-ref HEAD ^/dev/null | sed -e 's|^refs/heads/||') -end - -function _git_is_dirty - echo (command git status -s --ignore-submodules=dirty ^/dev/null) -end - -function fish_prompt - set -l last_status $status - - set -l cyan (set_color cyan) - set -l yellow (set_color yellow) - set -l red (set_color red) - set -l blue (set_color blue) - set -l green (set_color green) - set -l normal (set_color normal) - - set -l cwd $blue(basename (pwd | sed "s:^$HOME:~:")) - - # Display [venvname] if in a virtualenv - if set -q VIRTUAL_ENV - echo -n -s (set_color -b cyan black) '[' (basename "$VIRTUAL_ENV") ']' $normal ' ' - end - - # Print pwd or full path - echo -n -s $cwd $normal - - # Show git branch and status - if [ (_git_branch_name) ] - set -l git_branch (_git_branch_name) - - if [ (_git_is_dirty) ] - set git_info $yellow $git_branch "±" $normal - else - set git_info $green $git_branch $normal - end - echo -n -s ' · ' $git_info $normal - end - - set -l prompt_color $red - if test $last_status = 0 - set prompt_color $normal - end - - # Terminate with a nice prompt char - echo -e -n -s $prompt_color ' ⟩ ' $normal -end