This commit is contained in:
pika 2025-06-22 11:42:39 +02:00
parent 78cff87120
commit 9e1bb67ef2
2 changed files with 25 additions and 3 deletions

View file

@ -665,7 +665,7 @@ main() {
# ─< d stands for docker >────────────────────────────────────────────────────────────────── # ─< d stands for docker >──────────────────────────────────────────────────────────────────
if command_exists docker; then if command_exists docker; then
__docker__ __docker__
elif command_exists podman-compose; then elif command_exists podman; then
__podman__ __podman__
else else
echo_missing "docker | podman" echo_missing "docker | podman"

26
.zshrc
View file

@ -295,6 +295,27 @@ __keychain_setup__() {
fi fi
} }
get-vars() {
local uptime docker shell
uptime="$(uptime --pretty)"
shell="$SHELL"
if command_exists docker; then
docker=docker
elif command_exists podman; then
docker=podman
else
docker=none
fi
printf "uptime: %s\n" "$uptime"
printf "\n"
printf "using: %s\n" "$docker"
printf "\n"
printf "shell: %s\n" "$shell"
}
__end__() { __end__() {
if command_exists fastfetch; then if command_exists fastfetch; then
clear && clear &&
@ -303,8 +324,9 @@ __end__() {
fi fi
if command_exists cowsay; then if command_exists cowsay; then
alias clear='clear && cowsay -f tux "$(uptime --pretty)"' alias clear='clear && get-vars | cowsay -f tux'
cowsay -f tux "$(uptime --pretty)" # cowsay -f tux "$(uptime --pretty)"
get-vars | cowsay -f tux
else else
echo_missing "cowasy" echo_missing "cowasy"
fi fi