Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/dustinmichels/dotfiles

Some config files
https://github.com/dustinmichels/dotfiles

Last synced: 10 days ago
JSON representation

Some config files

Awesome Lists containing this project

README

        

# dotfiles

## Usage

I symlink my dotfiles with copies in this repo.

When setting up a new computer, clone the repo, then run `./setup.sh` to copy files to their proper place.

```sh
# copy files to home directory
./setup.sh
```

Then, to backup existing dotfiles:

```sh
# link files in home directory to repo
./backup.sh
```

### Brewfile

Periodically backup homebrew by running:

```sh
brew bundle dump --global --force
```

This outputs Brew programs to `~/.Brewfile`.

To install anew:

```sh
brew bundle --global
```

See more brew stuff [here](https://gist.github.com/ChristopherA/a579274536aab36ea9966f301ff14f3f)

## Other programs

Install and setup manually.

### Terminal

[iterm2](https://www.iterm2.com/) with manta colors.

### Shell

Using [oh-my-zsh](https://ohmyz.sh/).

```sh
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
```

Install [autosuggestion plugin](https://github.com/zsh-users/zsh-autosuggestions):

```sh
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
```

### Homebrew

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

Install packages from Brewfile

```sh
brew bundle install
```

### Python

#### Pyenv

```sh
# install dependencies
brew install openssl readline sqlite3 xz zlib tcl-tk

# install pyenv
brew install pyenv

# post install
echo 'eval "$(pyenv init --path)"' >> ~/.zprofile
echo 'eval "$(pyenv init -)"' >> ~/.zshrc
```

List available pythons

```sh
pyenv install --list | grep " 3\.[678]"
```

Install one, eg:

```sh
pyenv install 3.8.12
```

Configure default:

```sh
pyenv global 3.8.12
```

#### Poetry

Install poetry
https://python-poetry.org/docs/#installation

### Resources

- [homebrew/homebrew-bundle](https://github.com/Homebrew/homebrew-bundle)