Skip to content

ijsnow/env

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My environment

Setup

  1. Export ENVDIR
echo "export ENVDIR=$(pwd)" >> ~/.bash_profile
source ~/.bash_profile
  1. ZSH setup
# install zsh
brew install zsh zsh-completions
chsh -s /bin/zsh

# install oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

# install antigen
curl -L git.io/antigen > ./zsh/antigen.zsh

# use custom .zshrc
echo "source $ENVDIR/zsh/init.zsh" > ~/.zshrc
source ~/.zshrc
  1. Install required programming languages and tools
# tools
brew install zlip
brew install fzf
brew install ack
brew install editorconfig
brew install direnv

# install asdf
git clone https://github.com/asdf-vm/asdf.git $ENVDIR/.asdf --branch v0.7.1

# add to shell
echo -e '\n. $ENVDIR/.asdf/asdf.sh' >> $ENVDIR/zsh/init.zsh
echo -e '\n. $ENVDIR/.asdf/completions/asdf.bash' >> $ENVDIR/zsh/init.zsh
source ~/.zshrc

# create symlink for global tool versions
ln -s $ENVDIR/.tool-versions ~/.tool-versions

# install languages
asdf plugin-add ruby https://github.com/asdf-vm/asdf-ruby.git
asdf plugin-add python https://github.com/danhper/asdf-python.git
asdf plugin-add golang https://github.com/kennyp/asdf-golang.git
asdf plugin-add java
asdf install
  1. Neovim setup
# install neovim
brew install neovim

# install vim-plug
curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
    https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim

# requirements
gem install neovim
pip3 install --user pynvim

# for lsp in vim
npm install -g typescript-language-server
  1. Tmux setup
brew install tmux
echo "source-file $ENVDIR/tmux/init.tmux" > ~/.tmux.conf
git clone https://github.com/tmux-plugins/tpm $ENVDIR/tmux/plugins/tpm
tmux

To install tmux plugins, execute ctl a + I, then run tmux source ~/.tmux.conf to reload.

About

My dotfiles

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors