Skip to content

Commit 4672da2

Browse files
committed
Updated workspace-intro.sh with new style changes
1 parent 32864c3 commit 4672da2

1 file changed

Lines changed: 5 additions & 11 deletions

File tree

β€Žscripts/workspace-intro.shβ€Ž

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -175,30 +175,24 @@ main() {
175175
clear
176176
sleep 0.3
177177

178+
local ws_prompt="${C_GREEN}${SSH_USER}${C_RESET}@${C_CYAN}${SSH_HOST}${C_RESET}:~\$ "
179+
178180
# ═══════════════════════════════════════════════════════
179181
# PHASE 2: Welcome Banner
180182
# ═══════════════════════════════════════════════════════
181183

182-
instant "${C_BOLD}${C_WHITE}"
183-
instant "$ASCII_BANNER"
184-
instant "${C_RESET}"
184+
type_command "$ws_prompt" "cat /etc/motd" "${C_BOLD}${ASCII_BANNER}${C_RESET}"
185185

186186
sleep 0.4
187187

188-
instant " ${C_DIM}──────────────────────────────────────────${C_RESET}\n"
189-
sleep 0.2
190-
instant " ${SLOGAN}\n"
191-
instant " ${C_DIM}──────────────────────────────────────────${C_RESET}\n"
192-
instant "\n"
188+
type_command "$ws_prompt" "MOTTO" "${SLOGAN}"
193189

194190
sleep "$SECTION_PAUSE"
195191

196192
# ═══════════════════════════════════════════════════════
197193
# PHASE 3: Interactive Session
198194
# ═══════════════════════════════════════════════════════
199195

200-
local ws_prompt="${C_GREEN}${SSH_USER}${C_RESET}@${C_CYAN}${SSH_HOST}${C_RESET}:~\$ "
201-
202196
# Command: whoami
203197
type_command "$ws_prompt" "whoami" "${C_WHITE}${AUTHOR_NAME}${C_RESET} ${C_DIM}<${AUTHOR_EMAIL}>${C_RESET}"
204198

@@ -221,7 +215,7 @@ main() {
221215
printf '%b' "$ws_prompt"
222216
sleep 2
223217

224-
printf '\n\n'
218+
printf '\n'
225219
sleep 0.5
226220
}
227221

0 commit comments

Comments
Β (0)