bash/zsh: history settings moved to profile

master
TiynGER 4 years ago
parent 5635dcac8f
commit 3c5e9c4cde

@ -3,10 +3,7 @@
shopt -s autocd
set -o vi
stty -ixon # Disable ctrl-s and ctrl-q.
export PS1="\[$(tput bold)\]\[$(tput setaf 1)\][\[$(tput setaf 3)\]\u\[$(tput setaf 2)\]@\[$(tput setaf 4)\]\h \[$(tput setaf 5)\]\W\[$(tput setaf 1)\]]\[$(tput setaf 7)\]\[$(tput sgr0)\]\\$ "
HISTSIZE=10000
SAVEHIST=10000
HISTFILE=~/.cache/shhistory
export PS1="\[$(tput bold)\]\[$(tput setaf 4)\][\[$(tput setaf 4)\]\u\[$(tput setaf 4)\]@\[$(tput setaf 4)\]\h \[$(tput setaf 4)\]\W\[$(tput setaf 4)\]]\[$(tput setaf 4)\]\[$(tput sgr0)\]\\$ "
source "$HOME/.config/aliasrc" 2>/dev/null # Load aliases

@ -49,10 +49,6 @@ zstyle ':vcs_info:git*+set-message:*' hooks git-st git-stash
PS1='%B%{$fg[blue]%}[%{$fg[blue]%}%n%{$fg[blue]%}@%{$fg[blue]%}%M %{$fg[blue]%}%~%{$fg[blue]%}]%{$reset_color%}\$%b '
RPROMPT='%B%{$fg[blue]%}$vcs_info_msg_0_%{$reset_color%}%b'
# History in cache directory
HISTSIZE=10000
SAVEHIST=10000
# Basic auto/tab complete
autoload -U compinit
zstyle ':completion:*' menu select

@ -32,6 +32,8 @@ export GOBIN="${GOPATH}/bin"
export GRADLE_USER_HOME="${XDG_CONFIG_HOME}/gradle"
export GTK2_RC_FILES="${XDG_CONFIG_HOME}/gtk-2.0/gtkrc-2.0"
export HISTFILE="${XDG_CACHE_HOME}/shhistory"
export HISTSIZE=10000
export SAVEHIST=10000
export INPUTRC="${XDG_CONFIG_HOME}/inputrc"
export LESSKEY="${XDG_CONFIG_HOME}/less/lesskey"
export LESSHISTFILE="-"

Loading…
Cancel
Save