zshrc minor refactor
This commit is contained in:
parent
5daf34bff3
commit
8707b56be2
3 changed files with 25 additions and 19 deletions
|
@ -137,13 +137,3 @@ fi
|
|||
if [ -z "$DISPLAY" ] && [ "$XDG_VTNR" -eq 1 ]; then
|
||||
exec startx $XINITRC
|
||||
fi
|
||||
|
||||
# zsh stuff
|
||||
export HISTSIZE=10000000
|
||||
export SAVEHIST=10000000
|
||||
export HISTFILE="$XDG_DATA_HOME/zsh/history"
|
||||
export KEYTIMEOUT=1
|
||||
export PROMPT='%B%F{blue}%n%F{cyan}@%F{blue}%m %F{magenta}[%F{white}%3~%F{magenta}] %(?.%F{green}.%F{red})»%f%b '
|
||||
export RPROMPT='%(?..%F{red}%?) $(venv_prompt)'
|
||||
|
||||
source $ZDOTDIR/configs/hashes
|
||||
|
|
|
@ -1,14 +1,16 @@
|
|||
#!/bin/zsh
|
||||
source $ZDOTDIR/configs/widgets
|
||||
source $ZDOTDIR/configs/setup
|
||||
source $ZDOTDIR/configs/bindings
|
||||
source $ZDOTDIR/configs/aliases
|
||||
[ -r $ZDOTDIR/configs/host-setup ] && source $ZDOTDIR/configs/host-setup
|
||||
source "$ZDOTDIR/configs/widgets"
|
||||
source "$ZDOTDIR/configs/setup"
|
||||
source "$ZDOTDIR/configs/bindings"
|
||||
source "$ZDOTDIR/configs/aliases"
|
||||
source "$ZDOTDIR/configs/hashes"
|
||||
source "$ZDOTDIR/configs/prompt"
|
||||
[ -r "$ZDOTDIR/configs/host-setup" ] && source "$ZDOTDIR/configs/host-setup"
|
||||
|
||||
source $ZDOTDIR/plugins/fzf/bindings.zsh
|
||||
source $ZDOTDIR/plugins/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh
|
||||
source $ZDOTDIR/plugins/virtualenvwrapper.plugin.zsh
|
||||
source "$ZDOTDIR/plugins/fzf/bindings.zsh"
|
||||
source "$ZDOTDIR/plugins/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh"
|
||||
source "$ZDOTDIR/plugins/virtualenvwrapper.plugin.zsh"
|
||||
|
||||
export GPG_TTY=$(tty)
|
||||
export GPG_TTY="$(tty)"
|
||||
gpg-connect-agent updatestartuptty /bye >/dev/null 2>&1
|
||||
clear
|
||||
|
|
|
@ -19,3 +19,17 @@ zle_highlight+=(paste:none)
|
|||
add-zsh-hook preexec write_title_cmd
|
||||
add-zsh-hook precmd write_title_wd
|
||||
add-zsh-hook preexec reset_beam
|
||||
|
||||
export HISTSIZE=10000000
|
||||
export SAVEHIST=10000000
|
||||
export KEYTIMEOUT=1
|
||||
|
||||
export HISTFILE="$XDG_DATA_HOME/zsh/history"
|
||||
|
||||
export HISTSIZE=10000000
|
||||
export SAVEHIST=10000000
|
||||
export HISTFILE="$XDG_DATA_HOME/zsh/history"
|
||||
export KEYTIMEOUT=1
|
||||
|
||||
source $ZDOTDIR/configs/hashes
|
||||
source $ZDOTDIR/configs/prompt
|
||||
|
|
Loading…
Add table
Reference in a new issue