Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean codeword, cooperkid, cupcake theme files #2292

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions clean_files.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ themes/brainy
themes/brunton
themes/candy
themes/clean
themes/codeword
themes/cooperkid
themes/cupcake
themes/doubletime
themes/easy
themes/elixr
Expand Down
1 change: 1 addition & 0 deletions themes/codeword/codeword.theme.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# shellcheck shell=bash
# shellcheck disable=SC2034 # Expected behavior for themes.

SCM_THEME_PROMPT_PREFIX="${SCM_THEME_PROMPT_SUFFIX:-}"
SCM_THEME_PROMPT_DIRTY="${bold_red?} ✗${normal?}"
Expand Down
22 changes: 13 additions & 9 deletions themes/cooperkid/cooperkid.theme.bash
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
# shellcheck shell=bash
# shellcheck disable=SC2034 # Expected behavior for themes.
# ------------------------------------------------------------------#
# FILE: cooperkid.zsh-theme #
# BY: Alfredo Bejarano #
# BASED ON: Mr Briggs by Matt Brigg ([email protected]) #
# ------------------------------------------------------------------#

SCM_THEME_PROMPT_DIRTY="${red} ✗${reset_color}"
SCM_THEME_PROMPT_AHEAD="${yellow} ↑${reset_color}"
SCM_THEME_PROMPT_CLEAN="${green} ✓${reset_color}"
SCM_THEME_PROMPT_DIRTY="${red?} ✗${reset_color?}"
SCM_THEME_PROMPT_AHEAD="${yellow?} ↑${reset_color?}"
SCM_THEME_PROMPT_CLEAN="${green?} ✓${reset_color?}"
SCM_THEME_PROMPT_PREFIX=" "
SCM_THEME_PROMPT_SUFFIX=""
GIT_SHA_PREFIX="${blue}"
GIT_SHA_SUFFIX="${reset_color}"
GIT_SHA_PREFIX="${blue?}"
GIT_SHA_SUFFIX="${reset_color?}"

function rvm_version_prompt {
if which rvm &> /dev/null; then
Expand All @@ -27,11 +29,13 @@ function git_short_sha() {

function prompt() {
local return_status=""
local ruby="${red}$(ruby_version_prompt)${reset_color}"
local user_host="${green}\h @ \w${reset_color}"
local git_branch="$(git_short_sha)${cyan}$(scm_prompt_info)${reset_color}"
local ruby
ruby="${red}$(ruby_version_prompt)${reset_color}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just to stick to the format, how about adding the question marks to this line as well?

local user_host="${green?}\h @ \w${reset_color?}"
local git_branch
git_branch="$(git_short_sha)${cyan?}$(scm_prompt_info)${reset_color?}"
local prompt_symbol=' '
local prompt_char="${purple}>_${reset_color} "
local prompt_char="${purple?}>_${reset_color?} "

PS1="\n${user_host}${prompt_symbol}${ruby} ${git_branch} ${return_status}\n${prompt_char}"
}
Expand Down
3 changes: 2 additions & 1 deletion themes/cupcake/cupcake.theme.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
# shellcheck shell=bash
# shellcheck disable=SC2034 # Expected behavior for themes.

# Emoji-based theme to display source control management and
# virtual environment info beside the ordinary bash prompt.
Expand Down
Loading