aboutsummaryrefslogtreecommitdiffstats
path: root/.zprofile
diff options
context:
space:
mode:
authorkatherine <ageha@airen-no-jikken.icu>2019-08-17 00:46:19 -0700
committerkatherine <ageha@airen-no-jikken.icu>2019-08-17 00:46:19 -0700
commit3ee2e833d6e423ced02c182a55c35b9a4bc3c687 (patch)
tree1ba8b1b86cab41c2d63ab8697fdbdfe6e3b24f51 /.zprofile
parenteb811856e254141959eb6afad77bb0d119172b70 (diff)
downloaddotfiles-3ee2e833d6e423ced02c182a55c35b9a4bc3c687.tar.gz
clean zsh stuff
Diffstat (limited to '.zprofile')
-rw-r--r--.zprofile18
1 files changed, 14 insertions, 4 deletions
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