From c92c2c659d63c19da66c4a282e8ea68f0dac20f3 Mon Sep 17 00:00:00 2001 From: Justin Hileman Date: Sun, 31 May 2015 08:30:50 -0700 Subject: [PATCH] [split] Move mtahmed theme to oh-my-fish/theme-mtahmed https://github.com/oh-my-fish/theme-mtahmed --- themes/mtahmed/README.md | 15 --------------- themes/mtahmed/fish_prompt.fish | 19 ------------------- themes/mtahmed/fish_right_prompt.fish | 12 ------------ 3 files changed, 46 deletions(-) delete mode 100644 themes/mtahmed/README.md delete mode 100644 themes/mtahmed/fish_prompt.fish delete mode 100644 themes/mtahmed/fish_right_prompt.fish diff --git a/themes/mtahmed/README.md b/themes/mtahmed/README.md deleted file mode 100644 index ae34926..0000000 --- a/themes/mtahmed/README.md +++ /dev/null @@ -1,15 +0,0 @@ -## mtahmed - -Minimal theme. - -![mtahmed](https://cloud.githubusercontent.com/assets/1272018/5965709/13d07f68-a7f6-11e4-9872-7936516ba258.png) - -#### Left prompt - -- First 10 characters of hostname if `ssh`'ed -- Current directory name (not path) -- ─╼ (cute little unicode characters) - -#### Right prompt - -- Exit code of the previous command diff --git a/themes/mtahmed/fish_prompt.fish b/themes/mtahmed/fish_prompt.fish deleted file mode 100644 index 24afde8..0000000 --- a/themes/mtahmed/fish_prompt.fish +++ /dev/null @@ -1,19 +0,0 @@ -# name: mtahmed -# Left prompt: -# - First 10 characters of hostname if ssh'ed -# - Current directory name -# - ─╼ -# Right prompt: -# - Exit code of the previous command -function fish_prompt - set_color $fish_color_cwd - if [ -n "$SSH_CONNECTION" ] - printf '%s | ' (hostname | head -c 10) - end - if [ "$HOME" = (pwd) ] - printf "~" - else - printf (basename (pwd)) - end - printf " ─╼ " -end diff --git a/themes/mtahmed/fish_right_prompt.fish b/themes/mtahmed/fish_right_prompt.fish deleted file mode 100644 index c8eb8b5..0000000 --- a/themes/mtahmed/fish_right_prompt.fish +++ /dev/null @@ -1,12 +0,0 @@ -# name: mtahmed -# Left prompt: -# - First 10 characters of hostname if ssh'ed -# - Current directory name -# - ─╼ -# Right prompt: -# - Exit code of the previous command -function fish_right_prompt - set -l last_status $status - set_color $fish_color_cwd - printf $last_status -end