I came across a video where a guy had the date and time for each command he entered displayed
command line time and date.PNG
does anyone know how to do this?
I came across a video where a guy had the date and time for each command he entered displayed
command line time and date.PNG
does anyone know how to do this?
By the looks of it, thats ZSH (rather than bash), with a custom theme.
You would need to change your shell to zsh (and I would highly recommend 'oh my zsh' afterwards too - too http://ohmyz.sh/).
Reasons for ZSH/OhMyZSH - http://www.slideshare.net/jaguardesi...shell-16194692
This is a Kali-Linux support forum - not general IT/infosec help.
Useful Commands: OS, Networking, Hardware, Wi-Fi
Troubleshooting: Kali-Linux Installation, Repository, Wi-Fi Cards (Official Docs)
Hardware: Recommended 802.11 Wireless Cards
Documentation: http://docs.kali.org/ (Offline PDF version)
Bugs Reporting & Tool Requests: https://bugs.kali.org/
Kali Tool List, Versions & Man Pages: https://tools.kali.org/
thanks i will have a look, i believe i have managed to do it just using bash though.
This was how i did mine in bash
root@ocalhost:~#leafpad .bashrc
once leafpad is opened I browse to the condition
if [ "$color_prompt" = yes ]; then
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;31m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
else
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
fi
in this condition i commented out the line (this is the default primary prompt string) below
# PS1='${debian_chroot:+($debian_chroot)}\[\033[01;31m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
this will ignore the line and leave it as a backup just in case you want to revert back. a new line was added just below the above line:
PS1='\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;31m\]\u@\h[\d \T]\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]#'
logout of linux and then login..thats it ...open a terminal..you will see the primary prompt string as
root@localhost[Wed Jun 18 11:50:09]: