From e2be8bc2bc9dccf2f2023c7d262b6e68ea02132a Mon Sep 17 00:00:00 2001 From: tiago Date: Sat, 23 Jan 2021 17:30:20 +0000 Subject: [PATCH] trailing and code style --- themes/modern/modern.theme.bash | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/themes/modern/modern.theme.bash b/themes/modern/modern.theme.bash index 496d61e3..cfc20e9a 100644 --- a/themes/modern/modern.theme.bash +++ b/themes/modern/modern.theme.bash @@ -9,26 +9,24 @@ SCM_HG_CHAR="${bold_red}☿${normal}" case $TERM in xterm*) - TITLEBAR="\[\033]0;\w\007\]" - ;; + TITLEBAR="\[\033]0;\w\007\]" + ;; *) - TITLEBAR="" - ;; + TITLEBAR="" + ;; esac PS3=">> " is_vim_shell() { - if [ ! -z "$VIMRUNTIME" ] - then + if [ ! -z "$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)]" @@ -58,4 +56,3 @@ prompt() { PS2="└─▪ " safe_append_prompt_command prompt -