fix: HOME cleanup

This commit is contained in:
Tobias Reisinger 2019-12-26 13:52:34 +01:00
commit f016790d01
4 changed files with 5 additions and 5 deletions

View file

@ -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

33
.config/bash/colours Normal file
View file

@ -0,0 +1,33 @@
black='\[\e[0;30m\]'
BLACK='\[\e[1;30m\]'
blackbg='\[\e[40m\]'
red='\[\e[0;31m\]'
RED='\[\e[1;31m\]'
redbg='\[\e[41m\]'
green='\[\e[0;32m\]'
GREEN='\[\e[1;32m\]'
greenbg='\[\e[42m\]'
yellow='\[\e[0;33m\]'
YELLOW='\[\e[1;33m\]'
yellowbg='\[\e[43m\]'
blue='\[\e[0;34m\]'
BLUE='\[\e[1;34m\]'
bluebg='\[\e[44m\]'
purple='\[\e[0;35m\]'
PURPLE='\[\e[1;35m\]'
purplebg='\[\e[45m\]'
cyan='\[\e[0;36m\]'
CYAN='\[\e[1;36m\]'
cyanbg='\[\e[46m\]'
white='\[\e[0;37m\]'
WHITE='\[\e[1;37m\]'
whitebg='\[\e[47m\]'
nc='\[\e[0m\]'

View file

@ -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

View file

@ -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"