diff options
| author | Peter Son Struschka <me@peter-struschka.com> | 2018-12-23 21:05:24 +0700 |
|---|---|---|
| committer | Peter Son Struschka <me@peter-struschka.com> | 2018-12-23 21:05:24 +0700 |
| commit | e30c67483b11bab0ae3795ef7015435489ea7833 (patch) | |
| tree | 9350fd6b22b68abc84c42476ec1cf0fc2576bc13 /zsh | |
| parent | 1297a2e0ec774a13c9900b63c2b4afbb6582a5d3 (diff) | |
| download | dotfiles-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')
| -rwxr-xr-x | zsh/.zprofile | 5 | ||||
| -rw-r--r-- | zsh/.zshrc | 12 |
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 @@ -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 |
