From 05087d8b200f133b95d36f3456980132e164c927 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ensar=20Saraj=C4=8Di=C4=87?= Date: Mon, 9 May 2022 18:16:47 +0200 Subject: [PATCH] Clean up old config stuff --- Makefile | 4 ++-- symlinks/profile.common | 6 +----- symlinks/vim/plugins.vim | 12 ++---------- symlinks/vim/vimrc | 4 ---- 4 files changed, 5 insertions(+), 21 deletions(-) diff --git a/Makefile b/Makefile index 9183bf0..b7cae58 100644 --- a/Makefile +++ b/Makefile @@ -14,11 +14,11 @@ else endif SCRIPTS_DIR := $(DOTFILES_DIR)/bin SYMLINKS_DIR := $(DOTFILES_DIR)/symlinks -BACKUP_DIR := $(HOME)/dotfiles_backup +BACKUP_DIR := $(HOME)/.local/share/dotfiles_backup SSH_KEYS_HOME := $(HOME)/.ssh SSH_CONFIG_FILE := $(SSH_KEYS_HOME)/config PERSONAL_SSH_KEYS_HOME := $(SSH_KEYS_HOME)/Personal -SCRIPTS_CACHE_DIR := $(HOME)/.script_cache +SCRIPTS_CACHE_DIR := $(HOME)/.local/share/script_cache PROJECTS_ROOT := $(HOME)/Projects DOCUMENTS_ROOT := $(HOME)/Documents PICTURES_ROOT := $(HOME)/Pictures diff --git a/symlinks/profile.common b/symlinks/profile.common index e671697..980f7fa 100644 --- a/symlinks/profile.common +++ b/symlinks/profile.common @@ -27,13 +27,9 @@ export LANG=en_US.UTF-8 export DEFAULT_USER="ensar" -export MY_VIM_HOME=$HOME/.vim -export MY_VIM_PLUGINS_HOME=$MY_VIM_HOME/plugged -export MY_VIM_PLUGIN_MANAGER=plug export MY_DOTFILES_HOME=$HOME/.dotfiles export MY_CONFIG_DIR=$HOME/.config -export MY_THEMES_DIR=$HOME/.dotfiles/themes -export MY_CONFIG_CACHE_DIR=$HOME/.script_cache +export MY_CONFIG_CACHE_DIR=$HOME/.local/share/script_cache export MY_PROJECTS_HOME=$HOME/Projects export MY_DOCUMENTS_HOME=$HOME/Documents diff --git a/symlinks/vim/plugins.vim b/symlinks/vim/plugins.vim index 56f083b..fd44ff7 100644 --- a/symlinks/vim/plugins.vim +++ b/symlinks/vim/plugins.vim @@ -13,19 +13,11 @@ if !has('win32') && !has('win64') if empty(glob('$PLUGLOCATION')) silent !curl -fLo $PLUGLOCATION --create-dirs \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim - if empty($MYVIMRC) - autocmd VimEnter * PlugInstall --sync | source $HOME . '.vimrc' - else - autocmd VimEnter * PlugInstall --sync | source $MYVIMRC - endif + autocmd VimEnter * PlugInstall --sync | source $HOME . '.vimrc' endif endif -if empty($MY_VIM_HOME) - call plug#begin($VIMHOME . '/plugged') -else - call plug#begin($MY_VIM_HOME . '/plugged') -endif +call plug#begin($VIMHOME . '/plugged') " ----------------------------------------------------------------------------- " - General - diff --git a/symlinks/vim/vimrc b/symlinks/vim/vimrc index 00d22e1..d2dd432 100644 --- a/symlinks/vim/vimrc +++ b/symlinks/vim/vimrc @@ -8,15 +8,11 @@ else let $NVIMHOME = $HOME."/.local/share/nvim" endif let $VIMPLUGINS = expand($VIMHOME."/plugins.vim") -let $LOCAL_VIMRC = $HOME."/.vimrc.local" " ----------------------------------------------------------------------------- " - Load up plugins - " ----------------------------------------------------------------------------- " Use local vimrc for overrides if available and desired -if filereadable($LOCAL_VIMRC) - source $LOCAL_VIMRC -endif source $VIMPLUGINS " -----------------------------------------------------------------------------