From e30c67483b11bab0ae3795ef7015435489ea7833 Mon Sep 17 00:00:00 2001 From: Peter Son Struschka Date: Sun, 23 Dec 2018 21:05:24 +0700 Subject: reorganization and updates --- zsh/.zshrc | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'zsh/.zshrc') diff --git a/zsh/.zshrc b/zsh/.zshrc index 404a8b7..5098b24 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -21,6 +21,13 @@ antigen bundle zsh-users/zsh-autosuggestions antigen bundle zsh-users/zsh-completions antigen bundle zsh-users/zsh-history-substring-search +if [ "$TERM" = "linux" ]; then + _SEDCMD='s/.*\*color\([0-9]\{1,\}\).*#\([0-9a-fA-F]\{6\}\).*/\1 \2/p' + for i in $(sed -n "$_SEDCMD" $HOME/.Xresources | awk '$1 < 16 {printf "\\e]P%X%s", $1, $2}'); do + echo -en "$i" + done + clear +fi # THEME POWERLEVEL9K_INSTALLATION_PATH=$ANTIGEN_BUNDLES/bhilburn/powerlevel9k @@ -63,6 +70,9 @@ if type "thefuck" > /dev/null; then eval $(thefuck --alias) fi +if type "fasd" > /dev/null; then + eval "$(fasd --init auto)" +fi # python virtualenvwrapper export WORKON_HOME=~/.virtualenvs @@ -70,4 +80,4 @@ source /usr/bin/virtualenvwrapper_lazy.sh alias ec="emacsclient -c" -eval "$(fasd --init auto)" +source /usr/share/doc/pkgfile/command-not-found.zsh -- cgit v1.2.3