Skip to content

niaralab/dotfaster

 
 

Repository files navigation

Intro

This is my brand new attempt to improve zsh performance by using some cool solutions like:

OBS: this repo also contains my vim configuration including a bunch of plugins (a big vimwiki with many linux and vim tips)

I have an article at Medium.com about this project:

My current time results

for i in {1..10}; time zsh -ci exit
zsh -ci exit  0,03s user 0,03s system 74% cpu 0,081 total
zsh -ci exit  0,03s user 0,03s system 73% cpu 0,082 total
zsh -ci exit  0,06s user 0,00s system 75% cpu 0,079 total
zsh -ci exit  0,05s user 0,01s system 76% cpu 0,079 total
zsh -ci exit  0,02s user 0,04s system 74% cpu 0,081 total
zsh -ci exit  0,06s user 0,00s system 74% cpu 0,081 total
zsh -ci exit  0,04s user 0,02s system 74% cpu 0,081 total
zsh -ci exit  0,01s user 0,05s system 72% cpu 0,083 total
zsh -ci exit  0,06s user 0,00s system 74% cpu 0,080 total
zsh -ci exit  0,03s user 0,03s system 74% cpu 0,080 total

Clonig this repo

```sh
# http version
git clone --recursive -j8 https://github.com/voyeg3r/dotfaster.git .dotfiles
git fetch --recurse-submodules --jobs=8
ssh -T git@github.com
var=`echo 3gmail.com@ | sed 's,\(^3\)\(gmail\.com\)\(\@\),voyeg\1r\3\2,g'`
git config --global user.name voyeg3r
git config --global merge.tool vimdiff
git config --global user.email ${var}
git config --global alias.last 'log -1 HEAD'
git config --global credential.helper cache
git config --global push.default simple
git config --global credential.helper 'cache --timeout=3600'
git config --global alias.hist 'log --pretty=format:"%h %ad | %s%d [%an]" --graph --date=short'

ln -sfvn ~/.dotfiles/nvim ~/.config/nvim
ln -sfvn ~/.dotfiles/zsh/.zlogin ~/.zlogin
ln -sfvn ~/.dotfiles/zsh/.zshenv ~/.zshenv
ln -sfvn ~/.dotfiles/zsh/.zshrc ~/.zshrc

chsh -s $(which zsh) $(whoami)

curl -fLo ~/.dotfiles/nvim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim

in case of vim I had to do
git submodule foreach git pull origin master

```

About

An attempt to make my zsh loading time awesome

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vim Script 45.0%
  • Emacs Lisp 39.4%
  • Shell 7.2%
  • Python 7.1%
  • JavaScript 0.5%
  • Perl 0.3%
  • Other 0.5%