dotfiles

My showable dotfiles.
Log | Files | Refs | Submodules

commit 3fa389bb9bff0dd9ff37d94513ae34d18f35d437
parent 6f81f0cdb79ee6ec2c74e7dee88a6f7574aa85ab
Author: Hugo Soucy <hugo.soucy@equisoft.com>
Date:   Sat,  5 Oct 2019 09:49:16 -0400

Update Korn shell conf

Diffstat:
M.kshrc | 40+++++++++++++++++++++++++++++++++++++---
1 file changed, 37 insertions(+), 3 deletions(-)

diff --git a/.kshrc b/.kshrc @@ -1,8 +1,42 @@ -HISTFILE=~/.ksh_history -HISTSIZE=10000 +# use emacs if it's installed, mg otherwise +case "$(command -v emacs)" in + */emacs) EMACS=emacs ;; + *) EMACS=mg ;; +esac + +export EDITOR=$EMACS +export FCEDIT=$EDITOR +export PAGER=less +export LESS='-iMRS -x2' +export LANG=fr_CA.UTF-8 +export LC_CTYPE=fr_CA.UTF-8 +export CLICOLOR=1 +HISTFILE=$HOME/.ksh_history +HISTSIZE=20000 HISTCONTROL=ignoredups:ignorespace -# Aliases +# emacs mode gives you the familiar Ctrl-A, Ctrl-E, etc +set -o emacs + +# use colorls if it's installed, plain old ls otherwise +if command -v colorls > /dev/null ; then + LS='colorls' +else + LS='ls' +fi + +# aliases alias ferron='cd ~/Ferron/ && ./cornelius build' +# nice colored prompt that also sets xterm title +_XTERM_TITLE='\[\033]0;\u@\h:\w\007\]' +_PS1_CLEAR='\[\033[0m\]' +_PS1_BLUE='\[\033[34m\]' +case "$(id -u)" in + 0) _PS1_COLOR='\[\033[1;31m\]' ;; + *) _PS1_COLOR='\[\033[32m\]' ;; +esac + screenfetch + +PS1='$_XTERM_TITLE\A $_PS1_COLOR\u@\h$_PS1_CLEAR:$_PS1_BLUE\w$_PS1_COLOR\$$_PS1_CLEAR '