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/.zprofile | 5 ++++- zsh/.zshrc | 12 +++++++++++- 2 files changed, 15 insertions(+), 2 deletions(-) (limited to 'zsh') diff --git a/zsh/.zprofile b/zsh/.zprofile index 400fa76..20bd592 100755 --- a/zsh/.zprofile +++ b/zsh/.zprofile @@ -1,6 +1,7 @@ cowfortune -. /etc/profile.d/vte.sh +#. /etc/profile.d/vte.sh + export EDITOR=emacsclient @@ -15,6 +16,7 @@ export MTP_NO_PROBE="1" #export ANDROID_HOME=/home/peter/Android/Sdk #export PATH="$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:$ANDROID_HOME/tools/bin:$PATH" +export PATH="$HOME/go/bin:$PATH" export PATH="$HOME/.bin:$PATH" export PATH="$HOME/.cargo/bin:$HOME/.local/bin:$PATH" export RUST_SRC_PATH="$(rustc --print sysroot)/lib/rustlib/src/rust/src" @@ -25,3 +27,4 @@ export npm_config_prefix=~/.node_modules alias open=xdg-open +export TERM=xterm-256color 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