Commit 90353bb6 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

~/.profile: check for vim before settings EDITOR

parent f800cb6d
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
. ~/.shell/funcs

# Environment variables
export HISTIGNORE="&:ls:[bf]g:d[fu]:exit"
export EDITOR=vim
export WORKON_HOME=~/.virtualenvs
export FIGNORE='.o:.pyc:~:.swp:.swa'

has vim &&
	export EDITOR=vim ||
	export EDITOR=vi

# Local prompt colour for shells which support it
export PROMPTCOLOUR=$((($(hostname|cksum|cut -f1 -d\ ) % 6) + 31))

@@ -15,8 +20,6 @@ export PROMPTCOLOUR=$((($(hostname|cksum|cut -f1 -d\ ) % 6) + 31))
# "~/.local"
PREFIX=":/usr:/usr/local"

. ~/.shell/funcs

source_each ~/.profile_local

manage_path PATH ~/.local/bin before check