Skip to content

Commit 3a846a2

Browse files
committed
cleanup modern theme
1 parent 2388c74 commit 3a846a2

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

clean_files.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ themes/bobby-python
4747
themes/brainy
4848
themes/brunton
4949
themes/command_duration.theme.bash
50+
themes/modern
5051

5152
# plugins
5253
#

themes/modern/modern.theme.bash

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# shellcheck shell=bash
2+
13
SCM_THEME_PROMPT_PREFIX=""
24
SCM_THEME_PROMPT_SUFFIX=""
35

@@ -19,14 +21,14 @@ esac
1921
PS3=">> "
2022

2123
is_vim_shell() {
22-
if [ ! -z "$VIMRUNTIME" ]; then
24+
if [ -n "$VIMRUNTIME" ]; then
2325
echo "[${cyan}vim shell${normal}]"
2426
fi
2527
}
2628

2729
modern_scm_prompt() {
2830
CHAR=$(scm_char)
29-
if [ $CHAR = $SCM_NONE_CHAR ]; then
31+
if [ "$CHAR" = "$SCM_NONE_CHAR" ]; then
3032
return
3133
else
3234
echo "[$(scm_char)][$(scm_prompt_info)]"

0 commit comments

Comments
 (0)