Skip to content

Commit

Permalink
cleanup modern theme
Browse files Browse the repository at this point in the history
  • Loading branch information
dot-1q committed Jan 24, 2021
1 parent e80e29b commit f50115f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions clean_files.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ themes/barbuk
themes/atomic
themes/axin
themes/base.theme.bash
themes/modern

# plugins
#
Expand Down
6 changes: 4 additions & 2 deletions themes/modern/modern.theme.bash
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# shellcheck shell=bash

SCM_THEME_PROMPT_PREFIX=""
SCM_THEME_PROMPT_SUFFIX=""

Expand All @@ -19,14 +21,14 @@ esac
PS3=">> "

is_vim_shell() {
if [ ! -z "$VIMRUNTIME" ]; then
if [ -n "$VIMRUNTIME" ]; then
echo "[${cyan}vim shell${normal}]"
fi
}

modern_scm_prompt() {
CHAR=$(scm_char)
if [ $CHAR = $SCM_NONE_CHAR ]; then
if [ "$CHAR" = "$SCM_NONE_CHAR" ]; then
return
else
echo "[$(scm_char)][$(scm_prompt_info)]"
Expand Down

0 comments on commit f50115f

Please sign in to comment.