From 6a95ae79c42103b2602759543237d1013f08651e Mon Sep 17 00:00:00 2001 From: Stephen Kent Date: Tue, 10 Feb 2026 22:55:44 -0800 Subject: [PATCH] Merge dotfiles-first-run into shell rc --- .dotfiles/bin/dotfiles-first-run | 24 ------------------------ .dotfiles/shell/rc | 15 ++++++++++++++- 2 files changed, 14 insertions(+), 25 deletions(-) delete mode 100755 .dotfiles/bin/dotfiles-first-run diff --git a/.dotfiles/bin/dotfiles-first-run b/.dotfiles/bin/dotfiles-first-run deleted file mode 100755 index b2ad161..0000000 --- a/.dotfiles/bin/dotfiles-first-run +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/sh - -set -e - -if [ -z "${DOTFILES_DATA}" ] || [ ! -d "${DOTFILES_DATA}" ]; then - exit 0 -fi - -cd - -echo "====" -echo "This appears to be a new dotfiles instance!" -printf "git author settings: %s <%s>\n" \ - "$(tput bold)$(git config --get user.name)$(tput sgr0)" \ - "$(tput bold)$(git config --get user.email)$(tput sgr0)" -if [ -n "${prompt_hide_user}" ]; then - printf "bashrc prompt_hide_user=%s" \ - "$(tput bold)${prompt_hide_user}$(tput sgr0)" -fi -echo -echo "Configure with $(tput bold)dotfiles-config$(tput sgr0)" -echo "====" - -touch "${DOTFILES_DATA}/welcome_message" diff --git a/.dotfiles/shell/rc b/.dotfiles/shell/rc index b0595e4..62fc7fa 100644 --- a/.dotfiles/shell/rc +++ b/.dotfiles/shell/rc @@ -554,7 +554,20 @@ __source_if_exists ~/.local/shell-aliases # Display basic settings on first invocation {{{ if [ ! -f "${DOTFILES_DATA}/welcome_message" ]; then - "${HOME}"/.dotfiles/bin/dotfiles-first-run + echo "====" + echo "This appears to be a new dotfiles instance!" + echo + printf "git author settings: %s <%s>\n" \ + "$(tput bold)$(git config --get user.name)$(tput sgr0)" \ + "$(tput bold)$(git config --get user.email)$(tput sgr0)" + if [ -n "${prompt_hide_user}" ]; then + printf "bashrc prompt_hide_user=%s\n" \ + "$(tput bold)${prompt_hide_user}$(tput sgr0)" + fi + echo + echo "Configure with $(tput bold)dotfiles-config$(tput sgr0)" + echo "====" + touch "${DOTFILES_DATA}/welcome_message" fi # }}}