To install 42fetch, run the following command:
curl https://raw.githubusercontent.com/0xySan/42fetch/main/install.sh | env CURL=true bash
-h
,--help
Display a help message.-c=...
,--config=...
- Specifies the path to a
.cfg
file if needed.
- Specifies the path to a
--no-config
- Disable the text from the config files.
-f=...
,--flag=...
- Overrides colors with the chosen flag.
-l=...
,--logo=...
- Choose the logo to be displayed.
-m
,--min
- Use the minimized version of the logo if available.
- 🏳️🌈 Flags supported:
pride
transgender
lesbian
bisexual
pansexual
nonbinary
genderfluid
agender
intersex
aromantic
asexual
- Config options
-
$user
– Username -
$hostmachine
– Hostname -
$lengthuh
– Length of$user
+$hostmachine
(with-
) -
$os
– Operating system -
$kernel
– Kernel version -
$uptime
– System uptime -
$packages
– Installed packages count -
$shell
– Default shell -
$resolution
– Screen resolution -
$de
– Desktop Environment -
$terminal
– Terminal emulator -
$cpu
– Processor model -
$gpu
– Graphics card model -
$memory
– RAM usage -
$ip
– Local IP address -
$pip
– Public IP address -
$lastboot
– Last system boot time -
$pc
– Process count -
$root
– Root partition usage -
$home
– Home directory usage
💡 Tip: You can combine multiple logos/flags (e.g., Arch,42,blahaj), and one will be randomly selected at launch.
If you want to use 42 api you need to create a .env
with your credentials like this:
UID="your_UID"
SECRET="your_secret"
$level
– Current level$progressBar
– Progress bar$correctionPts
– Correction points$wallets
– Wallet balance$session
– Current session status$duration
– Session duration