Development environment setup in a bootstrapping approach.
Setting up a development environment is boring and time consuming. It's better to eliminate the pain by automating it with scripts.
sudo apt install libunwind8 g++ zip make libsqlite3-dev
sudo apt install zsh tmux neovim # install zsh tmux vim stack
# brew install zsh tmux neovim # use with homebrew
bash -x <(curl https://raw.githubusercontent.com/Alexoner/dev-env/master/bootstrap.sh -L)
- In the root of the repository
lib/backup.sh
- Now the data would have been put in ./data/
$ /usr/bin/time zsh -i -c exit
3.07 real 1.58 user 1.27 sys
$ zsh -xv
+parse_git_dirty:11> STATUS=+parse_git_dirty:11> tail -n1
Run
$ cd ~/.oh-my-zsh && ag 'tail -n1'
lib/git.zsh
23: STATUS=$(command git status ${FLAGS} 2> /dev/null | tail -n1)
Reading implementation, we found the solution is to set
git config --global --add oh-my-zsh.hide-dirty 1