aboutsummaryrefslogtreecommitdiffstats
path: root/zsh/.zshrc
diff options
context:
space:
mode:
authorPeter Son Struschka <me@peter-struschka.com>2018-12-23 21:05:24 +0700
committerPeter Son Struschka <me@peter-struschka.com>2018-12-23 21:05:24 +0700
commite30c67483b11bab0ae3795ef7015435489ea7833 (patch)
tree9350fd6b22b68abc84c42476ec1cf0fc2576bc13 /zsh/.zshrc
parent1297a2e0ec774a13c9900b63c2b4afbb6582a5d3 (diff)
downloaddotfiles-e30c67483b11bab0ae3795ef7015435489ea7833.tar.gz
dotfiles-e30c67483b11bab0ae3795ef7015435489ea7833.tar.bz2
dotfiles-e30c67483b11bab0ae3795ef7015435489ea7833.tar.lz
dotfiles-e30c67483b11bab0ae3795ef7015435489ea7833.tar.xz
dotfiles-e30c67483b11bab0ae3795ef7015435489ea7833.tar.zst
dotfiles-e30c67483b11bab0ae3795ef7015435489ea7833.zip
reorganization and updates
Diffstat (limited to 'zsh/.zshrc')
-rw-r--r--zsh/.zshrc12
1 files changed, 11 insertions, 1 deletions
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