From 5914ddac3b3c60e6c0cc93b7897d3fc669f82e24 Mon Sep 17 00:00:00 2001 From: Jannik Zander Date: Wed, 25 May 2016 21:40:33 +0200 Subject: [PATCH] Move hist,swap,backup,undo files to .local/share/ --- .config/profile/rc/environ.sh | 8 ++------ .vimrc | 18 ++++++++---------- 2 files changed, 10 insertions(+), 16 deletions(-) diff --git a/.config/profile/rc/environ.sh b/.config/profile/rc/environ.sh index fbd8d35..5faf9db 100644 --- a/.config/profile/rc/environ.sh +++ b/.config/profile/rc/environ.sh @@ -8,6 +8,7 @@ export EDITOR=vim; export VISUAL=vim; export PAGER=less #export MYVIMRC="$HOME/.config/vim/vimrc" +export TMPDIR=~/.cache/tmp # Larger bash history (allow 32³ entries; default is 500) export HISTSIZE=32768; @@ -15,7 +16,7 @@ export HISTFILESIZE=$HISTSIZE; export HISTCONTROL=ignoreboth; # Make some commands not show up in history export HISTIGNORE="ls:cd:cd -:pwd:exit:date:* --help"; -export HISTFILE="$HOME/.cache/bash/history"; +export HISTFILE="$HOME/.local/share/bash/history"; # Whenever displaying the prompt, write the previous line to disk export PROMPT_COMMAND="history -a"; @@ -37,8 +38,3 @@ export MANPAGER="less -X"; # See http://www.gnu.org/software/src-highlite/source-highlight.html # export LESSOPEN="| /usr/bin/src-hilite-lesspipe.sh %s" export LESS=-eFRX - -# Tell lynx where the color settings are that were adjusted for the -# Solarized color scheme -export LYNX_LSS=$HOME/.config/lynx.lss - diff --git a/.vimrc b/.vimrc index a6727e9..2906b05 100644 --- a/.vimrc +++ b/.vimrc @@ -2,18 +2,16 @@ " --------------------- set nocompatible -set runtimepath+=~/.config/vim -set directory=~/.cache/vim/swap -set backupdir=~/.cache/vim/backup -set undodir=~/.cache/vim/undo +set runtimepath+=~/.cache/vim +set directory=~/.local/share/vim/swap +set backupdir=~/.local/share/vim/backup +set undodir=~/.local/share/vim/undo set viminfo+=n~/.local/share/vim/viminfo -if empty(glob('~/.config/vim/autoload/plug.vim')) +if empty(glob('~/.cache/vim/autoload/plug.vim')) cd ~ - silent !mkdir -p .cache/vim/swap > /dev/null 2>&1 - silent !mkdir -p .cache/vim/backup > /dev/null 2>&1 - silent !mkdir -p .cache/vim/undo > /dev/null 2>&1 - silent !curl -fLo .config/vim/autoload/plug.vim --create-dirs + silent !mkdir -p .local/share/vim/{swap,backup,undo} > /dev/null 2>&1 + silent !curl -fLo .cache/vim/autoload/plug.vim --create-dirs \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim autocmd VimEnter * PlugInstall | source $MYVIMRC cd - @@ -22,7 +20,7 @@ endif " section: plugins {{{1 " --------------------- -call plug#begin('~/.config/vim/plugged') +call plug#begin('~/.cache/vim/plugged') "Plug 'tpope/vim-sensible' "Plug 'tpope/vim-ragtag' -- 2.43.0