diff options
| author | Peter Son Struschka <me@peter-struschka.com> | 2020-02-02 12:58:59 +0800 |
|---|---|---|
| committer | Peter Son Struschka <me@peter-struschka.com> | 2020-02-02 12:58:59 +0800 |
| commit | 4e33b8e8a196d1d81485dc3f523d9cf0bbdb2f49 (patch) | |
| tree | bfe55e66734928054a28a0ad1def7f43a2538970 /zsh | |
| parent | f2b18aab5a84d04a36f4194473680ad70bdb5578 (diff) | |
| parent | de79e53a021ae10065886f6360de62bd7c65b605 (diff) | |
| download | dotfiles-4e33b8e8a196d1d81485dc3f523d9cf0bbdb2f49.tar.gz dotfiles-4e33b8e8a196d1d81485dc3f523d9cf0bbdb2f49.tar.bz2 dotfiles-4e33b8e8a196d1d81485dc3f523d9cf0bbdb2f49.tar.lz dotfiles-4e33b8e8a196d1d81485dc3f523d9cf0bbdb2f49.tar.xz dotfiles-4e33b8e8a196d1d81485dc3f523d9cf0bbdb2f49.tar.zst dotfiles-4e33b8e8a196d1d81485dc3f523d9cf0bbdb2f49.zip | |
fix merge conflict
Diffstat (limited to 'zsh')
| -rw-r--r-- | zsh/.zshrc | 98 |
1 files changed, 54 insertions, 44 deletions
@@ -1,51 +1,52 @@ -source /usr/share/zsh/share/antigen.zsh - -antigen use oh-my-zsh - -antigen bundle git -antigen bundle git-extras -antigen bundle pip -antigen bundle lein -antigen bundle command-not-found -antigen bundle docker -antigen bundle archlinux -antigen bundle sublime -antigen bundle zsh-navigation-tools -antigen bundle systemd -antigen bundle taskwarrior -antigen bundle virtualenvwrapper +# zplug +source ~/.zplug/init.zsh + +# oh my zsh stuff + +zplug "plugins/archlinux", from:oh-my-zsh +zplug "plugins/command-not-found", from:oh-my-zsh +zplug "plugins/docker", from:oh-my-zsh +zplug "plugins/git", from:oh-my-zsh +zplug "plugins/git-extras", from:oh-my-zsh +zplug "plugins/pip", from:oh-my-zsh +zplug "plugins/rsync", from:oh-my-zsh +zplug "plugins/sublime", from:oh-my-zsh +zplug "plugins/systemd", from:oh-my-zsh +zplug "plugins/taskwarrior", from:oh-my-zsh +zplug "plugins/thefuck", from:oh-my-zsh +zplug "plugins/tmux", from:oh-my-zsh +zplug "plugins/virtualenvwrapper", from:oh-my-zsh +zplug "plugins/zsh-navigation-tools", from:oh-my-zsh + +zplug "zsh-users/zsh-syntax-highlighting" +zplug "zsh-users/zsh-autosuggestions" +zplug "zsh-users/zsh-completions" +zplug "zsh-users/zsh-history-substring-search" + +# THEME +POWERLEVEL9K_INSTALLATION_PATH=$ANTIGEN_BUNDLES/bhilburn/powerlevel9k +POWERLEVEL9K_PROMPT_ON_NEWLINE=true +POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX="" +# POWERLEVEL9K_MULTILINE_LAST_PROMPT_PREFIX="↳ " +POWERLEVEL9K_PROMPT_ADD_NEWLINE=true +POWERLEVEL9K_MODE='awesome-fontconfig' +POWERLEVEL9K_SHORTEN_DIR_LENGTH=3 + +POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(os_icon context virtualenv dir dir_writable vcs) +POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status command_execution_time root_indicator background_jobs history time) + +# zplug theme https://gist.github.com/pstruschka/c05686e6cf10e12471a3104e42e6366b.git agnoster_custom + +zplug romkatv/powerlevel10k, use:powerlevel10k.zsh-theme fpath+=~/.zfunc -antigen bundle zsh-users/zsh-syntax-highlighting -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 - -if [ "$TERM" != "linux" ]; then - # THEME - POWERLEVEL9K_INSTALLATION_PATH=$ANTIGEN_BUNDLES/bhilburn/powerlevel9k - POWERLEVEL9K_PROMPT_ON_NEWLINE=true - POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX="" - #POWERLEVEL9K_MULTILINE_LAST_PROMPT_PREFIX="↳ " - POWERLEVEL9K_PROMPT_ADD_NEWLINE=true - POWERLEVEL9K_MODE='awesome-fontconfig' - POWERLEVEL9K_SHORTEN_DIR_LENGTH=3 - - POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(os_icon context virtualenv dir dir_writable vcs) - POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status command_execution_time root_indicator background_jobs history time) - - # antigen theme https://gist.github.com/pstruschka/c05686e6cf10e12471a3104e42e6366b.git agnoster_custom - antigen theme bhilburn/powerlevel9k powerlevel9k - - antigen apply + _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 if type "kitty" > /dev/null; then @@ -82,3 +83,12 @@ export WORKON_HOME=~/.virtualenvs alias ec="emacsclient -c" [[ -e /usr/share/doc/pkgfile/command-not-found.zsh ]] && source /usr/share/doc/pkgfile/command-not-found.zsh + +if ! zplug check --verbose; then + printf "Install? [y/N]: " + if read -q; then + echo; zplug install + fi +fi + +zplug load --verbose |
