Those who use git frequently will often execute commands like git status and git branch to check which branch you're on and if there are pending changes.
Fortunately, git offers a Bash script which automatically shows the current state of your repository in your prompt.
Wie veelvuldig git gebruikt, zal vaak de commando's git status en/of git branch uitvoeren om te kijken in welke branch momenteel actief is en of er nog wijzigingen rondhangen die nog niet gecommit zijn.
Gelukkig komt er bij git een script mee voor Bash waarmee je dat automatisch in je prompt kan laten zien in wat voor toestand je repository zich begeeft.
For some reason I wanted to highlight some lines during a rsync(1) session, those lines indicating that a file is going to be deleted. Doing the following command right on the command line didn't work:
It's not something which you see on first sight, but nano does support syntax highlighting. Have a look in /usr/share/nano and there you'll see some files which define rules for syntax highlighting. Now, to enable C highlighting in nano, edit your ~/.nanorc file and append the following line: