Mercurial > ec-dotfiles
annotate rc/shellinit-posix @ 746:6b7f6f09b8d1 default tip
[vimrc] fix php syntax highlight
Example file: https://github.com/ppy/osu-web/blob/e23658f45ac2e85d78bd339947e0d1cee57629c6/app/Libraries/BBCodeFromDB.php
(around the end)
| author | nanaya <me@nanaya.net> | 
|---|---|
| date | Wed, 29 Oct 2025 12:28:45 +0900 | 
| parents | 002d6aa2d76e | 
| children | 
| rev | line source | 
|---|---|
| 527 | 1 #!/bin/sh | 
| 2 | |
| 3 _os="$(uname)" | |
| 4 | |
| 5 export LANG="en_US.UTF-8" | |
| 6 export LC_CTYPE="en_US.UTF-8" | |
| 7 # The en_US.UTF-8 causes weird sorting. | |
| 8 # (not really, but I prefer C based sort.) | |
| 9 export LC_COLLATE=C | |
| 10 export LC_MESSAGES=C | |
| 11 | |
| 12 if command -v vim > /dev/null 2>&1; then | |
| 13 alias vi=vim | |
| 14 export EDITOR=vim | |
| 15 fi | |
| 16 | |
| 17 if command -v less > /dev/null 2>&1; then | |
| 18 export PAGER=less | |
| 19 export LESS=-FMRXginsz-2 | |
| 20 fi | |
| 21 | |
| 528 
92eb89781346
Enforce emacs-style commandline editor.
 edogawaconan <me@myconan.net> parents: 
527diff
changeset | 22 # Must be set after setting $EDITOR. | 
| 
92eb89781346
Enforce emacs-style commandline editor.
 edogawaconan <me@myconan.net> parents: 
527diff
changeset | 23 set -o emacs | 
| 
92eb89781346
Enforce emacs-style commandline editor.
 edogawaconan <me@myconan.net> parents: 
527diff
changeset | 24 | 
| 527 | 25 unset _os | 
