From f016790d011cae1761c7aeb047833cefb811f0dc Mon Sep 17 00:00:00 2001 From: Tobias Reisinger Date: Thu, 26 Dec 2019 13:52:34 +0100 Subject: [PATCH] fix: HOME cleanup --- .bashrc | 6 ++---- .bash_colours => .config/bash/colours | 0 .config/zsh/.zshrc | 2 +- .profile | 2 ++ 4 files changed, 5 insertions(+), 5 deletions(-) rename .bash_colours => .config/bash/colours (100%) diff --git a/.bashrc b/.bashrc index 5bf90f6..ba23241 100644 --- a/.bashrc +++ b/.bashrc @@ -5,6 +5,7 @@ # ignoredups and ignorespace HISTCONTROL=ignoreboth +HISTFILE=$HOME/.cache/bash_history # append to the history file, don't overwrite it shopt -s histappend @@ -13,9 +14,7 @@ shopt -s histappend # update the values of LINES and COLUMNS. shopt -s checkwinsize -if [ -f ~/.bash_colours ]; then - source ~/.bash_colours -fi +[ -f $HOME/.config/bash/colours ] && source $HOME/.config/bash/colours PS1="$PURPLE\u$nc@$BLUE\H$nc:$GREEN\w$YELLOW"'$(__git_ps1)'"$nc\\n$GREEN\$$nc " @@ -27,5 +26,4 @@ else function __git_ps1() { echo ""; }; fi -[ -f $HOME/.bashrc.local ] && source $HOME/.bashrc.local [ -f $HOME/.profile ] && source $HOME/.profile diff --git a/.bash_colours b/.config/bash/colours similarity index 100% rename from .bash_colours rename to .config/bash/colours diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index 487f8e8..a9011b1 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -5,7 +5,7 @@ PS1="%B%{$fg[red]%}[%{$fg[yellow]%}%n%{$fg[green]%}@%{$fg[blue]%}%M %{$fg[magent # History in cache directory: HISTSIZE=10000 SAVEHIST=10000 -HISTFILE=~/.cache/zsh_history +HISTFILE=$HOME/.cache/zsh_history # Basic auto/tab complete: autoload -U compinit diff --git a/.profile b/.profile index 16da867..77ceeba 100644 --- a/.profile +++ b/.profile @@ -1,5 +1,7 @@ export VIMINIT='source ~/.config/vimrc' +export PASSWORD_STORE_GENERATED_LENGTH='64' + # set PATH so it includes user's private bin if it exists [ -d "$HOME/bin" ] && PATH="$HOME/bin:$PATH"