My custom .dotfiles setup across my multiple machines (works very well on OSx, not sure on other OS).
See the usage instructions
-
install Oh My Zsh
-
Neovim
brew install neovim
- install ASDF (package version)
brew install asdf
register asdf plugins:
asdf plugin-add erlang https://github.com/asdf-vm/asdf-erlang.git
asdf plugin-add elixir https://github.com/asdf-vm/asdf-elixir.git
asdf plugin-add ruby https://github.com/asdf-vm/asdf-ruby.git
asdf plugin-add nodejs https://github.com/asdf-vm/asdf-nodejs.git
asdf plugin-add yarn
asdf plugin add bun
#install the certificates to install properly nodejs
brew install gpg
bash ~/.asdf/plugins/nodejs/bin/import-release-team-keyring
- install this theme for zsh:
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
cd ${ZSH_CUSTOM:-$ZSH/custom}/plugins
git clone https://github.com/djui/alias-tips
git clone https://github.com/zsh-users/zsh-completions
git clone https://github.com/zsh-users/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting
- Install patched fonts from:
https://github.com/ryanoasis/nerd-fonts/tree/master/patched-fonts/VictorMono
or simple download and install fonts from directory fontpatched in this project
- install ripgrep and ctags
brew install ripgrep
brew install universal-ctags
brew install bat
brew install htop
- install fzf
brew install fzf
/usr/local/opt/fzf/install
brew install git-cal
cd ~
git clone https://github.com/carakan/dotfiles ~/.dotfiles
cd ~/.dotfiles
./install
Install TPM
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
Only needs install tmux >= 2.2, this dotfiles is working with tmux 2.4
to test run this script in a tmux panel:
awk 'BEGIN{
s="/\\/\\/\\/\\/\\"; s=s s s s s s s s;
for (colnum = 0; colnum<77; colnum++) {
r = 255-(colnum*255/76);
g = (colnum*510/76);
b = (colnum*255/76);
if (g>255) g = 510-g;
printf "\033[48;2;%d;%d;%dm", r,g,b;
printf "\033[38;2;%d;%d;%dm", 255-r,255-g,255-b;
printf "%s\033[0m", substr(s,colnum+1,1);
}
printf "\n";
}'
I use NeoVim because I have had a lot of problems switching from insert mode
to normal using vim, I researching a lot and I'm not found a valid solution for
that, the only solution for now is change to neovim and looks more better/modern
alternative.
This setup is for NeoVim.
So you need to install python (3):
brew install python
pip install --upgrade pip setuptools
# To upgrade to new package pynvim
pip3 uninstall neovim
pip3 uninstall pynvim
pip3 install pynvim
# to upgrade
pip3 install --upgrade pynvim
- could need to run sometimes this command, to register new plugins
:UpdateRemotePlugins
run this on a terminal:
curl https://raw.githubusercontent.com/carakan/supra-vim/master/bootstrap.sh -L > supra-vim.sh && sh supra-vim.sh
call into vim:
:call dein#update()
" if you added/removed some plugins you need to run this
:call map(dein#check_clean(), "delete(v:val, 'rf')")
brew bundle dump # to create/update Brewfile
brew bundle # to install packages
- To sync vscode manually do this:
# to backup:
code --list-extensions > vscode-extensions.list
# to restore
bat vscode-extensions.list --plain | xargs -L 1 code --install-extension
- From MacOS Sierra ssh keys no longer added by default, I added a simple solution from lionheart/openradar-mirror#15361 also you need to run this command for first time:
ssh-add -K
- if you install my dotfiles you HAVE TO read this link to ensure all is working well:
https://github.com/neovim/neovim/wiki/FAQ
also, you can run :checkhealth
into your neovim to check the health of this dotfiles
- Enable sign commits:
git config --global commit.gpgsign true
- to install android SDK
brew cask install android-sdk (--force)
- To edit charcoal shades preferences:
# decode to xml
plutil -convert xml1 ~/Library/Preferences/com.charcoaldesign.shades.plist
# edit
code ~/Library/Preferences/com.charcoaldesign.shades.plist
# compile to binary
plutil -convert binary1 ~/Library/Preferences/com.charcoaldesign.shades.plist