cdto currently works gctp doesn't really works the issue is with the nbarg test 1 != 1 => have to find a solution about that
Long version :
export PS1="\j \u@\H : \w \$"
might replace \H
by \h
might replace \w
by \W
The number of cmds executed : \!
or \#
for shorter one
https://bashrcgenerator.com/
https://www.vincentliefooghe.net/content/linux-unix-variables-du-prompt-ps1
https://www.cyberciti.biz/faq/bash-shell-change-the-color-of-my-shell-prompt-under-linux-or-unix/
https://www.cyberciti.biz/tips/howto-linux-unix-bash-shell-setup-prompt.html
https://tldp.org/HOWTO/Bash-Prompt-HOWTO/x329.html\
WSL / EPITA :
__build_prompt()
{
PS1="\[\e[0;36m\]$? \[\e[01;32m\](\A) \u@\h\[\e[00m\]:\[\e[01;34m\]\w\[\e[00;36m\] \[\e[00m\]\n\[\e[01;31m\]\j\[\e[00m\]\$ "
}
if [ "$(ps -p $(ps -p $$ -o ppid=) -o args=)" != 'xfce4-terminal' ]; then
PROMPT_COMMAND="__build_prompt${PROMPT_COMMAND}"
fi
with git branch integration:
__build_prompt()
{
PS1="\[\e[0;36m\]$? \[\e[01;32m\](\A) \u@\h\[\e[00m\]:\[\e[01;34m\]\w\[\e[00;36m\] \$(git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/')\[\e[00m\]\n\[\e[01;31m\]\j\[\e[00m\]$ "
}
PROMPT_COMMAND="__build_prompt$PROMPT_COMMAND"
Scrot :
scrot #whole screen
scrot -s # Select area
scrot -u # current window
scort -d 5 # Wait 5 seconds before screen
scort -d 5 -c # Wait 5 seconds before screen and puts countdown
https://ostechnix.com/take-screenshots-command-line-using-scrot-linux/
cheat sheet to move around in command line https://github.com/fliptheweb/bash-shortcuts-cheat-sheet\