-
Notifications
You must be signed in to change notification settings - Fork 1
/
card.sh
executable file
·68 lines (61 loc) · 3.5 KB
/
card.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#!/usr/bin/env sh
###############################################
# Write a nice business card on the terminal. #
###############################################
######################################
# Font attributes #
######################################
bold="$(tput bold)" #[1m
underline="$(tput smul)" #[4m
end_underline="$(tput rmul)"
hidden="$(tput invis)"
reverse="$(tput rev)"
reset="$(tput sgr0)"
# dim="$(tput dim)"
# blink="$(tput blink)"
######################################
# Background colours #
######################################
bg_black="$(tput setab 0)"
bg_red="$(tput setab 1)"
bg_green="$(tput setab 2)"
bg_yellow="$(tput setab 3)"
bg_blue="$(tput setab 4)"
bg_magenta="$(tput setab 5)"
bg_cyan="$(tput setab 6)"
bg_white="$(tput setab 7)"
bg_purple="$(tput setab 8)"
bg_default="$(tput setab 9)"
######################################
# Foreground colours #
######################################
black="$(tput setaf 0)" #[30m
red="$(tput setaf 1)" #[31m
green="$(tput setaf 2)" #[32m
yellow="$(tput setaf 3)" #[33m
blue="$(tput setaf 4)" #[34m
magenta="$(tput setaf 5)" #[35m
cyan="$(tput setaf 6)" #[36m
white="$(tput setaf 7)" #[?m
purple="$(tput setaf 8)" #[?m
default="$(tput setaf 9)" #[?m
cat <<EOF
${magenta}╭───────────────────────────────────────────────────────────────╮
${magenta}│ │
${magenta}│${reset} ${bold}${magenta}Matthias Thym${reset} ${magenta}│
${magenta}│ │
${magenta}│${reset} ${bold}Web:${reset} ${white}https://${reset}${cyan}matthias.thym.at ${magenta}|
${magenta}│${reset} ${bold}Blog:${reset} ${white}https://${cyan}blog.thym.at ${magenta}│
${magenta}│ │
${magenta}│${reset} ${bold}LinkedIn:${reset} ${white}https://${cyan}linkedin.com${reset}${dim}/${magenta}mathym ${magenta}│
${magenta}│${reset} ${bold}Recruiting:${reset} ${blue}[email protected] ${magenta}│
${magenta}│ │
${magenta}│${reset} ${bold}Codeberg:${reset} ${white}https://${cyan}codeberg.org${reset}${dim}/${magenta}totoroot ${magenta}│
${magenta}│${reset} ${bold}GitHub:${reset} ${white}https://${cyan}github.com${reset}${dim}/${magenta}totoroot ${magenta}│
${magenta}│${reset} ${bold}Fediverse:${reset} ${white}https://${cyan}ibe.social${reset}${dim}/${magenta}@totoroot ${magenta}│
${magenta}│${reset} ${bold}Chat:${reset} ${blue}[email protected] ${magenta}│
${magenta}│ │
${magenta}│${reset} ${bold}Curlcard:${reset} ${green}curl ${cyan}-sL ${white}https://matthias.thym.at/card.sh | ${green}sh ${magenta}│
${magenta}│ │
${magenta}╰───────────────────────────────────────────────────────────────╯
EOF