dotfiles

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

commit ced0ab821c2ccdb22fd2e14e941e4b88c1d3b605
parent 26a0682a31c88c7bfcc902f981ada3bc8d139d75
Author: Daniel Moch <daniel@danielmoch.com>
Date:   Tue,  2 Jan 2018 22:13:53 -0500

shrc additions

1. Initialize EDITOR and VISUAL to vi or vim, depending on what is
   available
2. Export a basic PS1
3. alias export='export -p'

Diffstat:
M.shrc | 16+++++++++++++---
1 file changed, 13 insertions(+), 3 deletions(-)

diff --git a/.shrc b/.shrc @@ -1,11 +1,19 @@ -# + # ~/.shrc # # vim: ft=sh [ -r $HOME/.shrc.local ] && . $HOME/.shrc.local -EDITOR=vim + +if which vim > /dev/null 2>&1 +then + EDITOR=vim +else + EDITOR=vi +fi + VISUAL=$EDITOR -export EDITOR VISUAL +PS1="$LOGNAME@\h:\W\$ " +export EDITOR VISUAL PS1 # Keep the go folder hidden if which go > /dev/null 2>&1 @@ -77,3 +85,5 @@ then alias tns=tmux\ new-session\ -s alias tls=tmux\ list-sessions fi + +alias export="export -p"