Note: this setup works only on Mac OS X
zsh
as your default shell.$ git clone https://github.com/zsh-users/zsh-completions ${ZSH_CUSTOM:=~/.oh-my-zsh/custom}/plugins/zsh-completions
$ git clone git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
$ git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
$ git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/themes/powerlevel10k
You can clone the repository wherever you want (I like to keep it in ~/Projects/dotfiles
). The bootstrapper script will pull in the latest version and copy the files to your home folder.
$ git clone [email protected]:vaxXxa/dotfiles.git && cd dotfiles && make
To update, cd
into your local dotfiles
repository and then:
$ make
If ~/.extra/.zsh/local.zsh
exists, it will be sourced along with the other files. You can use this to add a few custom commands without the need to fork this entire repository, or to add commands you dont want to commit to a public repository.
My ~/.extra/.zsh/local.zsh
looks something like this:
# Git credentials
git config --global user.name "Vasyl Nakvasiuk"
git config --global user.email "[email protected]"
# Go environment
export GOROOT=/usr/local/opt/go/libexec
export GOPATH=$HOME/Projects/gocode
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
You can overwrite something using ~/.extra/.zsh/local.zsh
. For example:
# Overwrite alias
alias p="cd ~/Documents/Projects"
# Overwrite environment variable
export EDITOR="emacs"
Or you can extend all your dotfiles configuration using ~/.extra/.zsh/local.zsh
like entry point. Your ~/.extra/.zsh/local.zsh
can be like this:
for file in ~/.extra/.zsh/{local-exports,local-aliases,local-work-settings}.zsh; do
[ -r "$file" ] && source "$file"
done
unset file
And in ~/.extra/.zsh/local-exports.zsh
, ~/.extra/.zsh/local-aliases.zsh
, ~/.extra/.zsh/local-work-settings.zsh
you can add your own custom commands.
I'm using "Base16 Eighties Dark 256" colorscheme and "Fira Code" + "Fira Code Nerd Font". Colorscheme files you can find at .extra/.zsh/base16-shell/
folder. Also I set different font size for ASCII and non-ASCII characters.
Mathias Bynens for sharing his amazing collection of dotfiles.
Chris Hunt for nice dotfiles collection.
Chris Kempson for awesome color schemes.