Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

details in PS1 #279

Open
SkyperTHC opened this issue Jan 22, 2024 · 1 comment
Open

details in PS1 #279

SkyperTHC opened this issue Jan 22, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@SkyperTHC
Copy link

Consider adding a more advanced PS1 prompt, that shows process count, load and number of logged in users:

PS1='(remote) USERS=$(who | wc -l) LOAD=$(cut -f1 -d" " /proc/loadavg) PS=$(ps -e --no-headers|wc -l) \[\e[36m\]\u\[\e[m\]@\[\e[32m\]\h:\[\e[33;1m\]\w \[\e[0;31m\]\$\[\e[m\] '

which then looks like this:

(remote) USERS=6 LOAD=1.03 PS=175 root@ubuntu-22-04-02:~ #

(Stolen from THC Tips & Tricks)

@SkyperTHC SkyperTHC added the enhancement New feature or request label Jan 22, 2024
@r4vanan
Copy link

r4vanan commented Feb 17, 2024

thanks brother now i am stealing from here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants