My dotfiles with fresh
bash -c "`curl -sL get.freshshell.com`"
This will:
- Create a ~/.fresh directory.
- Clone the latest version of fresh into ~/.fresh/source/freshshell/fresh.
- Create a ~/.freshrc file.
You will need to manually add source ~/.fresh/build/shell.sh
to your shell config.
Install vim-plug
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
Install oh-my-zsh:
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
The oh-my-zsh is leverage the zgen to manage the zsh plugins. No need to install zgen
as our dotfiles contains the zgen executor bin file.
Each time if you updated the .dotfiles/shell/oh-my-zsh/zshrc
file, you need to run zgen reset
then zgen save
.
cd $HOME
git clone git@github.com:dafang/dotfiles.git .dotfiles
Then
rm -rf ~/.freshrc
ln -s ~/.dotfiles/freshrc ~/.freshrc
rm -rf ~/.zshrc
Then run fresh install
to configure local shell environment.
Each time if you have modified the dotfiles, you can run fresh update
to update them.
Run following commands:
vim
Then, :PlugInstall
See powerline
Then setup your iTerm fonts to one of the powwerline fonts:
Install HomeBrew on Mac OS [Only required on Mac]
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Then run ./brew.sh
to install brew packages.
Thanks to: