Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/adriangonz/dotfiles
https://github.com/adriangonz/dotfiles
Last synced: 17 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/adriangonz/dotfiles
- Owner: adriangonz
- Created: 2014-11-14T16:58:38.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2023-11-21T16:53:47.000Z (12 months ago)
- Last Synced: 2024-10-06T16:23:30.560Z (about 1 month ago)
- Language: Vim Script
- Size: 7.39 MB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# My dev environment
## Setting up dotfiles
- Clone the repo
```console
$ git --recursive [email protected]:adriangonz/dotfiles.git
```- Get `brew` (just follow [instructions](https://brew.sh))
- Get `Monaco for Powerline` from [here](https://gist.github.com/baopham/1838072/raw/616d338cea8b9dcc3a5b17c12fe3070df1b738c0/Monaco%2520for%2520Powerline.otf) and set it up on `iTerm` and patch it to add [devicons](https://github.com/ryanoasis/nerd-fonts#font-patcher)
```console
$ brew install fontforge
$ git clone ryanoasis/nerd-fonts
$ fontforge -script font-patcher ~/Library/Fonts/Monaco%20for%20Powerline.otf
```- Link `.editorconfig`
```console
$ ln -s ~/dotfiles/editorconfig ~/.editorconfig
```## Vim
- Link `.vimrc` and `.vim`
```console
$ ln -s ~/dotfiles/vimrc ~/.vimrc
$ ln -s ~/dotfiles/vim ~/.vim
```- Get latest neovim
```console
$ brew install neovim
$ pip install neovim
```- Link `.nvim`
```console
$ ln -s ~/dotfiles/nvim ~/.config/nvim
```- Install [ripgrep](https://github.com/BurntSushi/ripgrep) and [fzf](https://github.com/junegunn/fzf)
```console
$ brew install ripgrep fzf
```- Install all plugins with `:PlugInstall`
## Autocompletion
We use [langservers](http://langserver.org/) for autocompletion, so these need to be installed separately.
### Javascript
- Install `javascript-typescript-langserver`
```console
$ npm i -g javascript-typescript-langserver
```### Go
- Install `go-langserver`
```console
$ go get -u github.com/sourcegraph/go-langserver
```### Python
- Install `python-language-server` with all dependencies
```console
$ pip install 'python-language-server[all]
```## Tmux
- Install latest `tmux`
```console
$ brew install tmux
```- Install `tpm`
```console
$ git clone github.com:tmux-plugins/tpm ~/dotfiles/tmux/plugins/tpm
```- Link `.tmux.conf` and `tmux`
```console
$ ln -s ~/dotfiles/tmux.conf ~/.tmux.conf
$ ln -s ~/dotfiles/tmux ~/.tmux
```## Prompt and tmux status bar
We generate our prompt and tmux status bar from `vim` (thanks to [`edkolev/promptline.vim`](https://github.com/edkolev/promptline.vim) and [`edkolev/tmuxline.vim`](https://github.com/edkolev/tmuxline.vim)).
That way we ensure the style is consistent accross `vim`/`tmux`/`bash`.### Prompt
To edit it, checkout the `promptline_preset` variable on `vimrc` and re-generate it as:
```console
$ vim +PromptlineSnapshot functions/prompt.sh
```### Tmux
To edit it, checkout the `tmuxline_preset` variables on `vimrc` and re-generate it as:
```console
$ vim +TmuxlineSnapshot tmux/airline.conf
```## Data Science
For Data Science, we prefer using plain `LaTeX` and plain `ipython` to write reports
and experiment. Jupyter is great for small-scale experimenting, but it's not perfect.- Install `MacTex` from the official site [http://www.tug.org/mactex/](http://www.tug.org/mactex/)
- Link `matplotlib` configuration.
```console
$ ln -s ~/dotfiles/matplotlib ~/.matplotlib
```- Link `ipython` configuration.
```console
$ ipython profile create
$ ln -s ~/dotfiles/ipython_config.py ~/.ipython/profile_default/ipython_config.py
```## Extra stuff
- Install `bash-completion`
```console
$ brew install bash-completion
$ brew tap homebrew/completions
```- Set up proper `git lg`
```console
$ git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
```- Add global `.gitignore`
```console
$ ln -s ~/dotfiles/gitignore_global ~/.gitignore_global
$ git config --global core.excludesfile ~/.gitignore_global
```* Install `ccat` for syntax highlighting on `cat`
```console
$ brew install ccat
```* Install `httpie` for a better `curl`
```console
$ brew install httpie
```