1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- #
- # Zsh configuration file
- # Since 2006, kolter <kolter@openics.org>
- #
- # This file is distributed in the hope that it will be useful,
- # but WITHOUT ANY WARRANTY
- #
- ### Workaround for https://github.com/zplug/zplug/issues/397
- COMPINIT_ARGS=
- if [ "${UID}" = 0 ] && [ -n "${SUDO_UID}" ] ; then
- if ! grep -q COMPINIT_ARGS ~/.zplug/base/core/load.zsh ; then
- sed -i -r 's/^(\s+)compinit -d/\1compinit $COMPINIT_ARGS -d/' ~/.zplug/base/core/load.zsh
- fi
- COMPINIT_ARGS="-u"
- fi
- export COMPINIT_ARGS
- ###
- source ~/.zplug/init.zsh
- export ZSHDOTDIR=~/.zsh
- zplug "modules/archive", from:prezto
- zplug "modules/completion", from:prezto
- zplug "modules/directory", from:prezto
- zplug "modules/dpkg", from:prezto
- zplug "modules/editor", from:prezto
- zplug "modules/environment", from:prezto
- zplug "modules/terminal", from:prezto, defer:2
- zplug "modules/git", from:prezto
- zplug "modules/history", from:prezto
- zplug "modules/spectrum", from:prezto
- zplug "modules/rsync", from:prezto
- zplug "modules/autosuggestions", from:prezto
- zplug "modules/syntax-highlighting", from:prezto, defer:2
- zplug "modules/history-substring-search", from:prezto
- zplug "mafredri/zsh-async"
- zplug "chrissicool/zsh-256color"
- zplug "spaceship-prompt/spaceship-prompt", use:spaceship.zsh, from:github, as:theme
- if [[ -d "${ZSHDOTDIR}/config" ]]; then
- zplug "${ZSHDOTDIR}/config", from:local, defer:1
- fi
- if ! zplug check --verbose; then
- zplug install
- fi
- zplug load
- # Fixing zplug permissions while using 'sudo zsh'
- if [ "${UID}" = 0 ] && [ -n "${SUDO_UID}" ] ; then
- find ~/.zplug/ -not -user "${SUDO_UID}" -exec chown -R "${SUDO_UID}:${SUDO_GID}" {} \;
- fi
|