Install the command
TotalFetch comes with a command, totalfetch, that shows your summary in any terminal. One button puts it on your computer, and the same button takes it away.
On this page
Install it from the app
- Open TotalFetch.
- In In your terminal, press Install the command.
- Open a new terminal. Those already open do not know the command yet.
Run it on the Mac and Linux
totalfetchRun it on Windows
In a new PowerShell:
totalfetchThe Command Prompt does not know where the command is, so write its whole path there:
"%LOCALAPPDATA%\TotalJS\bin\totalfetch.exe"TotalFetch writes in the profile of PowerShell. If your Windows does not let PowerShell run scripts, the profile does not run: use the whole path there too, & "$env:LOCALAPPDATA\TotalJS\bin\totalfetch.exe".
The options of the command
| Command | What it does |
|---|---|
totalfetch | Shows the summary |
totalfetch --plain | Shows it without colours. It does the same when the variable NO_COLOR is set |
totalfetch --on-open | Shows it only if the greeting is on. This is what your terminal runs when it opens |
totalfetch --version | Says its version |
totalfetch --help | Lists the options |
What changes on your computer
| System | The command | The files of your terminal |
|---|---|---|
| macOS | ~/.totaljs/bin/totalfetch | A block in ~/.zshrc, and in ~/.bashrc if you have that file or bash is your shell |
| Linux | ~/.totaljs/bin/totalfetch | A block in ~/.zshrc and ~/.bashrc, in those that exist and in the one of your shell |
| Windows | %LOCALAPPDATA%\TotalJS\bin\totalfetch.exe | A block in Microsoft.PowerShell_profile.ps1, in the folders PowerShell and WindowsPowerShell of your documents |
If you use fish, it gets a file of its own: ~/.config/fish/conf.d/totalfetch.fish.
The block is between two lines that you can recognise, # >>> totalfetch >>> and # <<< totalfetch <<<. The first time that TotalFetch changes a file, it keeps a copy next to it, whose name ends in .totalfetch-backup.
Take it away
Press Uninstall. The command, the blocks and the file of fish are removed, and the rest of your files stays. The copies stay too: delete them when you do not need them.
Press Uninstall before you remove the app. If you remove the app first, the command stays on your computer and keeps working.
Update it
The command is a copy of the one in the app. After you update TotalFetch, open the app once: it updates the command too.