From c361c78dd6861f63df216fb48f2d37b105e8b4ca Mon Sep 17 00:00:00 2001 From: Fernando Schauenburg Date: Tue, 15 Dec 2020 23:41:05 +0100 Subject: [PATCH] bash: move .cache/less/history -> .local/share/less/history --- roles/bash/files/profile | 2 +- roles/bash/tasks/main.yml | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/roles/bash/files/profile b/roles/bash/files/profile index f41f486..8ef875a 100644 --- a/roles/bash/files/profile +++ b/roles/bash/files/profile @@ -18,7 +18,7 @@ export LANGUAGE="en_US" export LC_ALL="en_US.UTF-8" export LC_CTYPE="en_US.UTF-8" export LESS="-i -j.49 -M -R -z-2" -export LESSHISTFILE="$XDG_CACHE_HOME/less/history" +export LESSHISTFILE="$XDG_DATA_HOME/less/history" export LESSHISTSIZE=1000 export LOCAL_CONFIG="$HOME/.local/etc" export LOCAL_PREFIX="/usr/local" diff --git a/roles/bash/tasks/main.yml b/roles/bash/tasks/main.yml index c1ad803..68395dd 100644 --- a/roles/bash/tasks/main.yml +++ b/roles/bash/tasks/main.yml @@ -26,7 +26,7 @@ - bash_logout - profile -- name: Create the bash cache and config directories +- name: Ensure existence of directories used in bashrc file: path: "{{ item }}" state: directory @@ -34,6 +34,7 @@ - "~/.cache/bash" - "~/.config/bash" - "~/.local/share/bash-completion/completions" + - "~/.local/share/less" - name: Deploy bash profile file: