OMZ was too damn slow moving back to standalone mode

This commit is contained in:
Sameer Rahmani 2018-05-24 15:58:54 +01:00
parent 87342cc8af
commit a4651e64ab
3 changed files with 34 additions and 15 deletions

View File

@ -1,3 +0,0 @@
setup_myzsh() {
rm -f ~/.zcompdump; compinit
}

31
my.zsh
View File

@ -16,11 +16,28 @@
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
# -----------------------------------------------------------------------------
# Set options
export HISTFILE=$HOME/.zsh_history
export HISTFILESIZE=500
export SAVEHIST=500
export HISTSIZE=500
setopt HIST_IGNORE_DUPS
setopt NO_HIST_BEEP
setopt PROMPT_SUBST
setopt NO_BEEP
setopt AUTO_CD
setopt CORRECT
setopt SHARE_HISTORY
setopt HIST_IGNORE_ALL_DUPS
current_path=$(cd -P -- "$(dirname -- "$0")" && printf '%s\n' "$(pwd -P)")
#current_file=$current_path/$(basename -- "$0")
export my_zsh_plugin_dir="$current_path/plugins"
# My.Zsh directory path
myzsh=${MYZSH:-$HOME}
# current_path=$(cd -P -- "$(dirname -- "$0")" && printf '%s\n' "$(pwd -P)")
current_path=$ZSH_CUSTOM
myzsh=$ZSH_CUSTOM
current_file=$current_path/$(basename -- "$0")
fpath=($myzsh/lib/functions/{*.zsh,*.zwc}(N) $fpath)
@ -32,5 +49,11 @@ done
# Load aliases
. $myzsh/aliases
# Load the theme and coloring
autoload -U colors && colors
theme=${THEME:-$myzsh/themes/lxsameer.zsh-theme}
. $theme
project_path=${PROJECTS:-~/src}
cdpath=($project_path $cdpath)

View File

@ -1,13 +1,12 @@
MYZSH=$HOME/src/My.Zsh
MYZSH=$HOME/.my.zsh
THEME=$MYZSH/themes/lxsameer.zsh-theme
# Example aliases
alias emacsw="emacs -nw"
source $MYZSH/my.zsh
PROJECTS=$HOME/src/
eval $(keychain --eval --agents ssh -Q --quiet id_rsa)
export PATH=/home/lxsameer/.gem/ruby/2.0.0/bin:$PATH
export GEM_HOME=~/.gem/
# All of your configuration goes this file
load_overrides ~/.zshrc.override
setup_highlighting
setup_autosuggestion