rename dotf term to dotf hello
All checks were successful
Nix Format Check / check-format (push) Successful in 38s

This commit is contained in:
Menno van Leeuwen 2024-12-30 13:47:26 +01:00
parent ff4f509d26
commit f3e07bad16
Signed by: vleeuwenmenno
SSH Key Fingerprint: SHA256:OJFmjANpakwD3F2Rsws4GLtbdz1TJ5tkQF0RZmF0TRE
4 changed files with 5 additions and 5 deletions

View File

@ -163,5 +163,5 @@ fi
# Display a welcome message for interactive shells
if [ -t 1 ]; then
dotf term
dotf hello
fi

View File

@ -37,8 +37,8 @@ upgrade() {
"$upgrade_script" $@
}
term() {
local term_script="$DOTFILES_BIN/actions/term.sh"
hello() {
local term_script="$DOTFILES_BIN/actions/hello.sh"
if [[ ! -x "$term_script" ]]; then
printfe "%s\n" "red" "Error: Terminal script not found or not executable"
return 1
@ -125,7 +125,7 @@ main() {
update) shift; update "$@" ;;
upgrade) shift; upgrade "$@" ;;
help) shift; help "$@" ;;
term) shift; term "$@" ;;
hello) shift; hello "$@" ;;
secrets) shift; secrets "$@" ;;
auto-start) shift; auto_start "$@" ;;
*) help ;;

View File

@ -6,6 +6,6 @@ Usage: dotf [OPTIONS] [ARGS]
upgrade: Runs switch, flake variants for nix switch with upgrade and home-manager.
secrets: Encrypt and decrypt secrets.
auto-start: Start a set of pre-defined applications.
term: Shows the welcome message for the terminal.
hello: Shows the welcome message for the terminal.
help: Shows this help message