Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 550 Bytes

nano-editor.md

File metadata and controls

25 lines (19 loc) · 550 Bytes

nano editor

enable syntax highlight

  • include csharp syntax highlight ( using java file )
nanorcdir=/usr/share/nano
if [ ! -e "$nanorcdir" ]; then
  echo "not found nano resource files in [$nanorcdir]"
else
  if [ ! -e "$nanorcdir"/csharp.nanorc ]; then
    cat "$nanorcdir"/java.nanorc | sed 's/\.java/\.cs/g' | sed 's/java/csharp/I' > "$nanorcdir"/csharp.nanorc
  fi
  ls -1 "$nanorcdir"/*.nanorc | sed 's/^\//include \//' >> ~/.nanorc
fi

disable ^T^Z terminal suspend

add to ~/.nanorc follow

bind ^Z suspend main