An open API service indexing awesome lists of open source software.

https://github.com/rdsngit/dotfiles

Dotfiles configuration files for iTerm2, Homebrew, Mise, Z Shell, Vim, Git, Ruby and other dev tools
https://github.com/rdsngit/dotfiles

dracula-theme git homebrew iterm2 mise mise-en-place ruby zsh zshrc

Last synced: 3 months ago
JSON representation

Dotfiles configuration files for iTerm2, Homebrew, Mise, Z Shell, Vim, Git, Ruby and other dev tools

Awesome Lists containing this project

README

          

# dotfiles

Configuration for iTerm2, Mise, Z Shell, Vim, Ruby, Git and other software development tools.

## Setup

Clone the `dotfiles` repo into your home folder so it is located at `~/dotfiles`.

## Homebrew for MacOS

The [homebrew](/homebrew/) directory contains a [Brewfile](/homebrew/Brewfile) containing a list of packages for MacOS as well as extensions [VS Code](https://code.visualstudio.com/). They list includes some commonly used dependencies and development tools for working on Ruby on Rails applications and related software, such as [Dockerfiles](https://docs.docker.com/reference/dockerfile/).

To use this, first of all install the [homebrew](https://brew.sh/) package manager. Then navigate to the repo's [/homebrew](/homebrew/) directory and run the terminal command:

```sh
brew bundle
```

For more information about using Brewfiles see the following homebrew documentation page:

- https://docs.brew.sh/Brew-Bundle-and-Brewfile

## iTerm2

Install using [homebrew](https://brew.sh/).

```sh
brew install mise
```

- https://iterm2.com/

Open iTerm2 then navigate to the Settings tab then select the checkbox titled "Load settings from a custom folder or URL and choose the directory located at `User/[USER_HOME_DIRECTORY]/dotfiles/iterm2`.

In the Profiles tab within the Colors section you can import a color preset of your choice, for example the Dracula theme for iTerm2.

- https://draculatheme.com/iterm

## Mise

Install the Mise development environment setup tool.

```sh
brew install mise
```

- See the Mise docs for more info: https://mise.jdx.dev

Copy the mise config to the location in the home directory.

```sh
cp ~/dotfiles/mise/config.toml ~/.config/mise
```

You can backup the mise config file within the home `~/.config/mise` directory to the `~/dotfiles/mise` directory by using the following shell script:

```sh
~/dotfiles/mise/config_backup.sh
```

## Git

Copy the `.gitconfig` file from the [`git`](/git/) into the root of your home directory.

```sh
cp ~/dotfiles/git/.gitconfig ~/
```

Add your name, email, and signing key to the `user` section of the `gitconfig`.

## VS Code

Open VS Code and import the settings, keybindings, and other files, such as code snippets from the [`vs-code`](/vs-code/) folder.

## Zsh

The [`shell`](/shell/) folder contains scripts to set up the terminal prompt and aliases to use:

- [Homebrew](https://brew.sh/) package manager for MacOS
- [Git](https://git-scm.com/)
- [Ruby](https://www.ruby-lang.org/en/)
- [VS Code editor](https://code.visualstudio.com/)
- Other dev tools including the [Mise](https://mise.jdx.dev/) package manager

Amend your `~/.zshrc` to source the one in the dotfiles folder.

```sh
source ~/dotfiles/zshrc.sh
```

## Vim

Create directories for Vim autoload and Vim Plugins for the Dracula color theme.

```sh
mkdir ~/.vim/autoload
mkdir ~/.vim/plugged
```

See the Vim Plug GitHub repo for more info: https://github.com/junegunn/vim-plug
Dracula Theme for Vim: https://draculatheme.com/vim

Source the vim config in your `~/.vimrc`

```bash
source ~/dotfiles/vimrc.vim
```