dotfiles

Obligatory dotfiles repo
git clone git://git.danielmoch.com/dotfiles.git
Log | Files | Refs

commit 100f42879f7298b6ce1d14440d35cd9cfda930d8
parent 53ebb0c8908b2effde932dfaa3154b4c6a7ed177
Author: Daniel Moch <daniel@danielmoch.com>
Date:   Thu,  4 Jan 2018 21:34:20 -0500

Handle login shells and vi-only

Diffstat:
M.profile | 2+-
M.shrc | 5+++++
2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/.profile b/.profile @@ -3,7 +3,7 @@ # [ -r "$HOME/.profile.local" ] && . "$HOME/.profile.local" -if [ "$0" == "sh" ] +if [ "$0" == "sh" -o "$0" == "-sh" ] then ENV="$HOME/.shrc"; export ENV fi diff --git a/.shrc b/.shrc @@ -68,3 +68,8 @@ then fi fi fi + +if [ "$VISUAL" == "vi" ] +then + alias vim=vi +fi