https://www.cheatsheet.wtf/Nano/
- useful prompt (when working in git repos):
# Show Git branch in the prompt
parse_git_branch() {
git branch 2>/dev/null | grep '*' | sed 's/* //'
https://www.cheatsheet.wtf/Nano/
# Show Git branch in the prompt
parse_git_branch() {
git branch 2>/dev/null | grep '*' | sed 's/* //'
I felt the importance of directly editing a file from a DigitalOcean droplet on my Ubuntu Server. I research on the internet and made a way to do it.
| ################################################################################ | |
| # | |
| # R.nanorc -- nano syntax-highlighting file for R | |
| # | |
| # Origin: This file is part of the pkgutils package for R. | |
| # | |
| # Usage: This file should be placed in a directory such as /usr/share/nano/ (on | |
| # Ubuntu 12.04). That nano uses syntax highlighting at all might need to be | |
| # enabled separately. |