Mercurial > ec-dotfiles
annotate rc/shellinit-posix @ 739:2cf87b7ca09a default tip
Update vendored stuff
author | nanaya <me@nanaya.net> |
---|---|
date | Thu, 09 Jan 2025 03:28:23 +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:
527
diff
changeset
|
22 # Must be set after setting $EDITOR. |
92eb89781346
Enforce emacs-style commandline editor.
edogawaconan <me@myconan.net>
parents:
527
diff
changeset
|
23 set -o emacs |
92eb89781346
Enforce emacs-style commandline editor.
edogawaconan <me@myconan.net>
parents:
527
diff
changeset
|
24 |
527 | 25 unset _os |