diff options
author | katherine <ageha@airen-no-jikken.icu> | 2019-08-17 00:46:19 -0700 |
---|---|---|
committer | katherine <ageha@airen-no-jikken.icu> | 2019-08-17 00:46:19 -0700 |
commit | 3ee2e833d6e423ced02c182a55c35b9a4bc3c687 (patch) | |
tree | 1ba8b1b86cab41c2d63ab8697fdbdfe6e3b24f51 /.zprofile | |
parent | eb811856e254141959eb6afad77bb0d119172b70 (diff) | |
download | dotfiles-3ee2e833d6e423ced02c182a55c35b9a4bc3c687.tar.gz |
clean zsh stuff
Diffstat (limited to '.zprofile')
-rw-r--r-- | .zprofile | 18 |
1 files changed, 14 insertions, 4 deletions
@@ -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 |