- Install
onefetch
by either:- Compiling it from scratch using the Rust compiler, Cargo: with the command
cargo install onefetch
- Downloading a pre-built binary from Onefetch's GitHub releases page (recommended) and placing it in your
$PATH
(such as/usr/local/bin/onefetch
).
- Compiling it from scratch using the Rust compiler, Cargo: with the command
- Add the snippet listed in
onefetch_on_cd.sh
to whatever file that gets run whenever you start a new Bash session. This differs per distro but common files include:~/.bashrc
~/.bash_profile
- sometimes
~/.bash_aliases
?
Is this safe?
That depends.
Is it safe to blindly trust random code and programs from the internet?
I mean, what's the worst that could happen? Go on, do it. You know you want to.
Where did this come from?
From the Git repository where I store all my dotfiles,
which includes lots more useful Bash aliases and shortcuts.
Start a dotfiles repo today, you'll be hooked forever! 🥳
Will it slow my computer down?
No, it's pretty fast. Unless you're cd
ing into a massive repository like the Linux kernel which is several gigabytes in size and over 1.2 million commits. Then it takes about 20 seconds.
For normal web projects it's almost instant.