Assure that history + VTE load
This commit is contained in:
parent
0634ba59a3
commit
5e60e0047b
1 changed files with 9 additions and 9 deletions
16
zshrc
16
zshrc
|
@ -17,6 +17,7 @@ bindkey "$terminfo[kcud1]" history-beginning-search-forward
|
||||||
setopt prompt_subst # Make sure prompt is able to be generated properly.
|
setopt prompt_subst # Make sure prompt is able to be generated properly.
|
||||||
setopt auto_cd # Get that ~ in here.
|
setopt auto_cd # Get that ~ in here.
|
||||||
setopt hist_ignore_all_dups # Goodbye, random duplicates.
|
setopt hist_ignore_all_dups # Goodbye, random duplicates.
|
||||||
|
setopt hist_ignore_space # ' ' more like ._.
|
||||||
setopt inc_append_history # Write it asap
|
setopt inc_append_history # Write it asap
|
||||||
setopt share_history # goodbye, out-of-sync cross-shell passwords
|
setopt share_history # goodbye, out-of-sync cross-shell passwords
|
||||||
setopt auto_list # magic and things involving listing of items
|
setopt auto_list # magic and things involving listing of items
|
||||||
|
@ -53,6 +54,9 @@ zplug load
|
||||||
# the env _essentials_
|
# the env _essentials_
|
||||||
#########
|
#########
|
||||||
|
|
||||||
|
export HISTFILE="$HOME/.zsh_history"
|
||||||
|
export HISTSIZE=3000
|
||||||
|
export SAVEHIST=$HISTSIZE
|
||||||
export PATH="${HOME}/bin:$PATH"
|
export PATH="${HOME}/bin:$PATH"
|
||||||
|
|
||||||
# Android SDK
|
# Android SDK
|
||||||
|
@ -90,7 +94,11 @@ if [ -d /opt/devkitpro ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $TILIX_ID ] || [ $VTE_VERSION ]; then
|
if [ $TILIX_ID ] || [ $VTE_VERSION ]; then
|
||||||
|
if [ -s /etc/profile.d/vte.sh ]; then
|
||||||
source /etc/profile.d/vte.sh
|
source /etc/profile.d/vte.sh
|
||||||
|
elif [ -s /etc/profile.d/vte-2.91.sh ]; then
|
||||||
|
source /etc/profile.d/vte-2.91.sh
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $OSTYPE == darwin* ]]; then
|
if [[ $OSTYPE == darwin* ]]; then
|
||||||
|
@ -103,14 +111,6 @@ if [ -s $HOME/.rvm/scripts/rvm ]; then
|
||||||
export PATH="$PATH:$HOME/.rvm/bin"
|
export PATH="$PATH:$HOME/.rvm/bin"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Adapted from https://github.com/isaacmorneau/dotfiles/blob/882f11172a2c0fd1aa7020d627d2978e5d60f6b0/.bashrc#L125-L130
|
|
||||||
function mvsane () {
|
|
||||||
for F in "$@"
|
|
||||||
do
|
|
||||||
mv "$F" $(echo "$F" | sed -r 's/[ ]+/_/g;s/[^a-zA-Z0-9_.-]//g;s/[_-]{2,}/-/g;')
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
# Personal preferences
|
# Personal preferences
|
||||||
export EDITOR=vim
|
export EDITOR=vim
|
||||||
export GO111MODULE=on
|
export GO111MODULE=on
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue