aboutsummaryrefslogtreecommitdiffstats
path: root/zsh
diff options
context:
space:
mode:
Diffstat (limited to 'zsh')
-rwxr-xr-xzsh/.zprofile5
-rw-r--r--zsh/.zshrc12
2 files changed, 15 insertions, 2 deletions
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