mirror of
https://github.com/FAUSheppy/config
synced 2025-12-06 07:01:36 +01:00
moved double execute to top to save a bit of time on start
This commit is contained in:
36
zshrc
36
zshrc
@@ -1,8 +1,21 @@
|
|||||||
#### SET CONDITIONALS ####
|
### COLOR STDERR ###
|
||||||
NO_LDPRELOAD=false
|
NO_LDPRELOAD=false
|
||||||
if [[ $HOST == "squarez" ]]; then
|
if [[ $HOST == "squarez" ]]; then
|
||||||
NO_LDPRELOAD=true
|
NO_LDPRELOAD=true
|
||||||
fi
|
fi
|
||||||
|
if [[ $NO_LDPRELOAD == false ]]; then
|
||||||
|
LD_PRELOAD="$HOME/.config/libcoloredstderr.so"
|
||||||
|
COLORED_STDERR_FDS=2,
|
||||||
|
export LD_PRELOAD COLORED_STDERR_FDS
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ $FIRST_RUN == "FALSE" ]]; then
|
||||||
|
;
|
||||||
|
else
|
||||||
|
FIRST_RUN="FALSE"
|
||||||
|
export FIRST_RUN
|
||||||
|
exec zsh
|
||||||
|
fi
|
||||||
|
|
||||||
#### ZSH-INTERNAL ####
|
#### ZSH-INTERNAL ####
|
||||||
### HISTORY ###
|
### HISTORY ###
|
||||||
@@ -10,13 +23,7 @@ STSIZE=20000
|
|||||||
SAVEHIST=20000
|
SAVEHIST=20000
|
||||||
HISTFILE=~/.config/zshhistory.log
|
HISTFILE=~/.config/zshhistory.log
|
||||||
|
|
||||||
### COLOR STDERR ###
|
|
||||||
#legacy, this causes problems in output odering exec 2>>( while IFS='' read X; do print "\e[91m${X}\e[0m" > /dev/tty; done & )
|
|
||||||
if [[ $NO_LDPRELOAD == false ]]; then
|
|
||||||
LD_PRELOAD="$HOME/.config/libcoloredstderr.so"
|
|
||||||
COLORED_STDERR_FDS=2,
|
|
||||||
export LD_PRELOAD COLORED_STDERR_FDS
|
|
||||||
fi
|
|
||||||
|
|
||||||
### PROMT ###
|
### PROMT ###
|
||||||
MAIN_PROMT_COLOR="green"
|
MAIN_PROMT_COLOR="green"
|
||||||
@@ -258,11 +265,7 @@ hhs(){print -z "$(cat ~/.config/zshhistory.log | $PECO/peco)"}
|
|||||||
zle -N hhstest hhs
|
zle -N hhstest hhs
|
||||||
bindkey ^R hhstest
|
bindkey ^R hhstest
|
||||||
|
|
||||||
### Experimental ###
|
### LD PRELOAD FOR ZSH ###
|
||||||
source ~/.config/other/zsh-history-substring-search.zsh
|
|
||||||
bindkey '^[[5~' history-substring-search-up
|
|
||||||
bindkey '^[[6~' history-substring-search-down
|
|
||||||
alias genserverkey='openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 100000'
|
|
||||||
if [[ $FIRST_RUN == "FALSE" ]]; then
|
if [[ $FIRST_RUN == "FALSE" ]]; then
|
||||||
;
|
;
|
||||||
else
|
else
|
||||||
@@ -270,3 +273,10 @@ else
|
|||||||
export FIRST_RUN
|
export FIRST_RUN
|
||||||
exec zsh
|
exec zsh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
### Experimental ###
|
||||||
|
source ~/.config/other/zsh-history-substring-search.zsh
|
||||||
|
bindkey '^[[5~' history-substring-search-up
|
||||||
|
bindkey '^[[6~' history-substring-search-down
|
||||||
|
alias genserverkey='openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 100000'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user