Mercurial > ec-dotfiles
view rc/shellinit-posix @ 527:cb4e2a6595ea
Add ksh support.
author | edogawaconan <me@myconan.net> |
---|---|
date | Mon, 15 Sep 2014 14:46:50 +0900 |
parents | |
children | 92eb89781346 |
line wrap: on
line source
#!/bin/sh _os="$(uname)" export LANG="en_US.UTF-8" export LC_CTYPE="en_US.UTF-8" # The en_US.UTF-8 causes weird sorting. # (not really, but I prefer C based sort.) export LC_COLLATE=C export LC_MESSAGES=C if command -v tmux > /dev/null 2>&1; then case "${_os}" in OpenBSD) # FIXME: OpenBSD version check _tmux_conf_ver=1.9 ;; *) case "$(tmux -V 2> /dev/null)" in "tmux 1."[1-9][0-9]*|"tmux 1.9"*) _tmux_conf_ver=1.9;; "tmux 1."[4-8]*) _tmux_conf_ver=1.4;; *) _tmux_conf_ver=1.3;; esac ;; esac alias tmux="tmux -f '""${HOME}""/.tmux-""${_tmux_conf_ver}"".conf'" unset _tmux_conf_ver fi if command -v vim > /dev/null 2>&1; then alias vi=vim export EDITOR=vim fi if command -v less > /dev/null 2>&1; then export PAGER=less export LESS=-FMRXginsz-2 fi unset _os