From 82353196d63d8af8fcd3621536a2e26e0daa32e2 Mon Sep 17 00:00:00 2001 From: Austen Adler Date: Mon, 18 Jul 2016 16:41:37 -0400 Subject: [PATCH] Performance update --- shells/liquidpromptrc | 4 +++- shells/zshrc | 49 ++++++++++++++++++------------------------- 2 files changed, 23 insertions(+), 30 deletions(-) diff --git a/shells/liquidpromptrc b/shells/liquidpromptrc index 622ea80..03abd0e 100644 --- a/shells/liquidpromptrc +++ b/shells/liquidpromptrc @@ -1,5 +1,7 @@ LP_ENABLE_GIT=0 -LP_ENABLE_TIME=1 +LP_ENABLE_TIME=0 +LP_ENABLE_OHMYGIT=1 +LP_HOSTNAME_ALWAYS=0 LP_ENABLE_BATT=1 LP_ENABLE_SSH_COLORS=1 LP_USER_ALWAYS=0 diff --git a/shells/zshrc b/shells/zshrc index f904f0b..a2319c1 100644 --- a/shells/zshrc +++ b/shells/zshrc @@ -1,7 +1,8 @@ -echo -ne '[ ]\r' -for config (~/.zsh/*.zsh) source $config -ZSH_THEME="af-magic" -source "$HOME/.antigen/antigen.zsh" +#zmodload zsh/zprof +#for config (~/.zsh/*.zsh) source $config +source ~/.zsh/*.zsh +autoload -U compinit +compinit setopt INTERACTIVECOMMENTS setopt EXTENDED_GLOB setopt HIST_EXPIRE_DUPS_FIRST @@ -39,7 +40,7 @@ sv () { shift done } -compdef _services sv +#compdef _services sv # Run gui application as root by copying xauth credentials asroot(){ # Use temporary file for added security @@ -181,7 +182,7 @@ fixsh(){ } mv() { /bin/mv -v "$@" } m() { mv "$@" } -compdef _cp c cfat m mv cp +#compdef _cp c cfat m mv cp paste() { NAME="-d title=Command run at $(date '+%d/%h/%y %H:%M:%S') on $(hostname)" if [[ ! -z "$1" ]]; then @@ -271,14 +272,14 @@ tsh(){ echo "\n\n\n\n\n\n\n\n\n\nSESSION CLOSED\n\n\n\n\n\n\n\n\n\n" fi } -compdefas () { - local a - a="$1" - shift - compdef "$_comps[$a]" "${(@)*}=$a" -} -compdefas ssh tsh -compdefas mv m mv +#compdefas () { +# local a +# a="$1" +# shift +# #compdef "$_comps[$a]" "${(@)*}=$a" +#} +#compdefas ssh tsh +#compdefas mv m mv mcl(){ mkdir -p $1 cd $1 @@ -435,18 +436,6 @@ k(){ } # To resize, # :%S/\[([# ]{9})\]/[\1 ] -echo -ne '[# ]\r' -antigen bundle https://austenwares.com/gogs/stonewareslord/omg -echo -ne '[## ]\r' -antigen theme https://austenwares.com/gogs/stonewareslord/oh-my-git-themes af-magic -echo -ne '[### ]\r' -antigen bundle https://austenwares.com/gogs/stonewareslord/lpr -echo -ne '[#### ]\r' -antigen bundle zsh-users/zsh-syntax-highlighting -echo -ne '[##### ]\r' -antigen apply -echo -ne '[######]\r' -echo # OPAM configuration . /home/stonewareslord/.opam/opam-init/init.zsh > /dev/null 2> /dev/null || true @@ -489,6 +478,8 @@ echo #alias aoeu='setxkbmap -layout us -option "' #alias asdf='setxkbmap -layout dvorak -option ""' #alias sudo='sudo -H' -#smon(){ -# timeout 1s pdsh -R ssh -w 10.0.1.196,10.0.1.207 "$@" -#} +source ~/zsh/lpr/liquidprompt +source ~/zsh/omg/base.sh +source ~/zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh +source ~/zsh/oh-my-git-themes/af-magic.zsh-theme +#zprof