fix: HOME cleanup
This commit is contained in:
parent
5a76ba59fe
commit
f016790d01
4 changed files with 5 additions and 5 deletions
6
.bashrc
6
.bashrc
|
@ -5,6 +5,7 @@
|
||||||
|
|
||||||
# ignoredups and ignorespace
|
# ignoredups and ignorespace
|
||||||
HISTCONTROL=ignoreboth
|
HISTCONTROL=ignoreboth
|
||||||
|
HISTFILE=$HOME/.cache/bash_history
|
||||||
|
|
||||||
# append to the history file, don't overwrite it
|
# append to the history file, don't overwrite it
|
||||||
shopt -s histappend
|
shopt -s histappend
|
||||||
|
@ -13,9 +14,7 @@ shopt -s histappend
|
||||||
# update the values of LINES and COLUMNS.
|
# update the values of LINES and COLUMNS.
|
||||||
shopt -s checkwinsize
|
shopt -s checkwinsize
|
||||||
|
|
||||||
if [ -f ~/.bash_colours ]; then
|
[ -f $HOME/.config/bash/colours ] && source $HOME/.config/bash/colours
|
||||||
source ~/.bash_colours
|
|
||||||
fi
|
|
||||||
|
|
||||||
PS1="$PURPLE\u$nc@$BLUE\H$nc:$GREEN\w$YELLOW"'$(__git_ps1)'"$nc\\n$GREEN\$$nc "
|
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 ""; };
|
function __git_ps1() { echo ""; };
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ -f $HOME/.bashrc.local ] && source $HOME/.bashrc.local
|
|
||||||
[ -f $HOME/.profile ] && source $HOME/.profile
|
[ -f $HOME/.profile ] && source $HOME/.profile
|
||||||
|
|
|
@ -5,7 +5,7 @@ PS1="%B%{$fg[red]%}[%{$fg[yellow]%}%n%{$fg[green]%}@%{$fg[blue]%}%M %{$fg[magent
|
||||||
# History in cache directory:
|
# History in cache directory:
|
||||||
HISTSIZE=10000
|
HISTSIZE=10000
|
||||||
SAVEHIST=10000
|
SAVEHIST=10000
|
||||||
HISTFILE=~/.cache/zsh_history
|
HISTFILE=$HOME/.cache/zsh_history
|
||||||
|
|
||||||
# Basic auto/tab complete:
|
# Basic auto/tab complete:
|
||||||
autoload -U compinit
|
autoload -U compinit
|
||||||
|
|
2
.profile
2
.profile
|
@ -1,5 +1,7 @@
|
||||||
export VIMINIT='source ~/.config/vimrc'
|
export VIMINIT='source ~/.config/vimrc'
|
||||||
|
|
||||||
|
export PASSWORD_STORE_GENERATED_LENGTH='64'
|
||||||
|
|
||||||
# set PATH so it includes user's private bin if it exists
|
# set PATH so it includes user's private bin if it exists
|
||||||
[ -d "$HOME/bin" ] && PATH="$HOME/bin:$PATH"
|
[ -d "$HOME/bin" ] && PATH="$HOME/bin:$PATH"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue