-
Notifications
You must be signed in to change notification settings - Fork 1
/
sys_dev_info.sh
executable file
·72 lines (60 loc) · 1.32 KB
/
sys_dev_info.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
69
70
71
72
#!/bin/bash
if command -v fastfetch >>/dev/null; then
# https://github.com/fastfetch-cli/fastfetch
fastfetch
elif command -v sw_vers >>/dev/null; then
printf "MacOS $(sw_vers -productVersion)\n"
fi
printf "\n\n Default shell: ${SHELL}\n"
if command -v assume >>/dev/null; then
assume --version
fi
if command -v aws >>/dev/null; then
aws --version
fi
if command -v brew >>/dev/null; then
printf "\n\n Homebrew\n"
brew --version
brew info
fi
if command -v docker >>/dev/null; then
printf "\n\n Docker\n"
docker --version
docker compose version
fi
if command -v git >>/dev/null; then
printf "\n\n Git\n"
git --version
git --no-pager config -l
fi
if command -v make >>/dev/null; then
printf "\n\n Make\n"
make --version
fi
printf "\n\n C\n"
if command -v clang >>/dev/null; then
clang --version
fi
if command -v gcc >>/dev/null; then
gcc --version
fi
if command -v node >>/dev/null; then
printf "\n\n Node.js\n"
printf "node $(node --version)\n"
printf "npm $(npm --version)\n"
printf "yarn $(yarn --version)\n"
fi
if command -v ruby >>/dev/null; then
printf "\n\n Ruby\n"
ruby --version
bundler --version
if command -v rvm >>/dev/null; then
rvm --version
fi
fi
if command -v cargo >>/dev/null; then
printf "\n\n Rust\n"
cargo --version
rustc --version
rustup --version
fi