From 3ee2e833d6e423ced02c182a55c35b9a4bc3c687 Mon Sep 17 00:00:00 2001 From: katherine Date: Sat, 17 Aug 2019 00:46:19 -0700 Subject: clean zsh stuff --- .zprofile | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to '.zprofile') diff --git a/.zprofile b/.zprofile index 705e1d1..c27d303 100644 --- a/.zprofile +++ b/.zprofile @@ -1,4 +1,14 @@ -emulate sh -c 'source /etc/profile' +[[ -f /etc/profile ]] && \ + emulate sh -c 'source /etc/profile' + +################## SET EDITOR ################# +if [[ ! -z $(whence nvim) ]] then + export EDITOR=nvim +elif [[ ! -z $(whence vim) ]] then + export EDITOR=vim +elif [[ ! -z $(whence vi) ]] then + export EDITOR=vi +fi ############# STORE VIMTAGS IN TMP ############ export QT_STYLE_OVERRIDE=gtk @@ -32,7 +42,7 @@ func_init_checkreq() { return 0 } -if [[ -d ~/.config/init/funcs/ && -d ~/.config/init/funcreqs ]]; then +if [[ -d $HOME/.config/init/funcs/ && -d $HOME/.config/init/funcreqs ]]; then rm -rf /tmp/funcs mkdir -p /tmp/funcs path+=(/tmp/funcs) @@ -47,7 +57,7 @@ if [[ -d ~/.config/init/funcs/ && -d ~/.config/init/funcreqs ]]; then fi ############# CONNECTING OVER SSH ############# -[[ -f ~/.zprofile-dtach ]] && \ - source ~/.zprofile-dtach +[[ -f $HOME/.zprofile-dtach ]] && \ + source $HOME/.zprofile-dtach export PATH -- cgit v1.2.3