Skip to content

oshikryu/dotfiles

 
 

Repository files navigation

Installation (OSX)

Install brew

# brew uninstall
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)"

# brew install
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

Install related brew libraries Be sure you have build tools (on OSX)

brew update
brew install zsh
brew install python3
brew install git
brew install tmux
brew install cmake
brew install fzf
brew install ripgrep
brew install bat
brew install neovim
brew install pre-commit
brew install reattach-user-to-namespace
brew install direnv
brew install go
brew install coursier
brew install node
brew install yarn

Clone repo and git dependencies:

git clone [email protected]:oshikryu/dotfiles.git ~/.dot
cd ~/.dot
git submodule update --init --recursive

Change to zsh:

chsh -s /bin/zsh

Create symlinks by editing and run the init_osx

./init_osx

Your shell zsh theme should change

Vim dependencies

Install vim-plug:

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

Follow this up by running :PlugInstall in vim.

vim +'PlugInstall --sync' +qa

(Optional) Install prettier

yarn global add prettier

Installing fzf

I changed the fuzzy finding library from ctrlp because that was way slow. Install fzf via brew or change the vimrc to install via vim-plug

Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
Plug 'junegunn/fzf.vim'

Add env-specific environment variables in env.local Note, these are sensitive things so ensure that it is not checked in to git

touch ~/.env.local

Updating submodules

vim :PlugUpdate or vim :PlugInstall!

SSH keys

  1. Create ssh keys and add to github https://help.github.com/articles/generating-ssh-keys/
ls -al ~/.ssh
ssh-keygen -t rsa -b 4096
<enter>
<enter>
<enter>
ssh-add ~/.ssh/id_rsa
  1. Copy id_rsa.pub

  2. For OSX 10.12 > you need to add your SSH key to the SSH agent https://docs.github.com/en/github/authenticating-to-github/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent#adding-your-ssh-key-to-the-ssh-agent

  3. (If no config file) touch ~/.ssh/config

  4. Open your ~/.ssh/config file, then modify the file, replacing ~/.ssh/id_rsa if you are not using the default location and name for your id_rsa key.

Host * AddKeysToAgent yes UseKeychain yes IdentityFile ~/.ssh/id_rsaOpen your ~/.ssh/config file, then modify the file, replacing ~/.ssh/id_rsa if you are not using the default location and name for your id_rsa key.

Git

Since the gitconfig is symlinked, update the email to match the proper system usage

git config --global user.email "[email protected]"

Specific profile

Create a domino-profile.osx to include sensitive creds and mappings that should not be committed

Common problems

http://unix.stackexchange.com/questions/27851/after-installing-oh-my-zsh-zshrcsource34-no-such-file-or-directory

no submodule mapping http://stackoverflow.com/questions/4185365/no-submodule-mapping-found-in-gitmodule-for-a-path-thats-not-a-submodule

Autoindent is not working: :set indentexpr= export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"

Updating osx version needs to have compatible brew macvim

TMUX https://superuser.com/questions/397076/tmux-exits-with-exited-on-mac-os-x brew install reattach-to-user-namespace

backup/swap files: Getting the must overwrite and no backup? link the proper dir and chmod sudo chmod 0750 ~/.vim/vim/tmp/swap sudo chmod 0750 ~/.vim/vim/tmp/backup

python error when installing YCM https://stackoverflow.com/questions/62546912/youcompleteme-completed-failed ERROR: Python headers are missing in /Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/Headers. /usr/local/bin/python3.9 install.py --all

install go ycm-core/YouCompleteMe#3074

zshell theme not updating

  • make sure zshrc is properly symlinked

About

vim configuration

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vim Script 67.7%
  • Perl 18.1%
  • Python 7.7%
  • Shell 3.7%
  • Lua 2.8%