mirror of
https://github.com/tiyn/dotfiles.git
synced 2025-04-17 23:37:47 +02:00
bash/zsh: history settings moved to profile
This commit is contained in:
parent
5635dcac8f
commit
3c5e9c4cde
5
.bashrc
5
.bashrc
@ -3,10 +3,7 @@
|
|||||||
shopt -s autocd
|
shopt -s autocd
|
||||||
set -o vi
|
set -o vi
|
||||||
stty -ixon # Disable ctrl-s and ctrl-q.
|
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)\]\\$ "
|
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)\]\\$ "
|
||||||
HISTSIZE=10000
|
|
||||||
SAVEHIST=10000
|
|
||||||
HISTFILE=~/.cache/shhistory
|
|
||||||
|
|
||||||
source "$HOME/.config/aliasrc" 2>/dev/null # Load aliases
|
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 '
|
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'
|
RPROMPT='%B%{$fg[blue]%}$vcs_info_msg_0_%{$reset_color%}%b'
|
||||||
|
|
||||||
# History in cache directory
|
|
||||||
HISTSIZE=10000
|
|
||||||
SAVEHIST=10000
|
|
||||||
|
|
||||||
# Basic auto/tab complete
|
# Basic auto/tab complete
|
||||||
autoload -U compinit
|
autoload -U compinit
|
||||||
zstyle ':completion:*' menu select
|
zstyle ':completion:*' menu select
|
||||||
|
2
.profile
2
.profile
@ -32,6 +32,8 @@ export GOBIN="${GOPATH}/bin"
|
|||||||
export GRADLE_USER_HOME="${XDG_CONFIG_HOME}/gradle"
|
export GRADLE_USER_HOME="${XDG_CONFIG_HOME}/gradle"
|
||||||
export GTK2_RC_FILES="${XDG_CONFIG_HOME}/gtk-2.0/gtkrc-2.0"
|
export GTK2_RC_FILES="${XDG_CONFIG_HOME}/gtk-2.0/gtkrc-2.0"
|
||||||
export HISTFILE="${XDG_CACHE_HOME}/shhistory"
|
export HISTFILE="${XDG_CACHE_HOME}/shhistory"
|
||||||
|
export HISTSIZE=10000
|
||||||
|
export SAVEHIST=10000
|
||||||
export INPUTRC="${XDG_CONFIG_HOME}/inputrc"
|
export INPUTRC="${XDG_CONFIG_HOME}/inputrc"
|
||||||
export LESSKEY="${XDG_CONFIG_HOME}/less/lesskey"
|
export LESSKEY="${XDG_CONFIG_HOME}/less/lesskey"
|
||||||
export LESSHISTFILE="-"
|
export LESSHISTFILE="-"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user