Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/antoniogamiz/dotfiles

Configuration files for my computer.
https://github.com/antoniogamiz/dotfiles

Last synced: 22 days ago
JSON representation

Configuration files for my computer.

Awesome Lists containing this project

README

        

## Interesting available commands

```bash
# to see the diff between two files
diff
```

## Multiple accounts Git/GitHub

Install the github and:

```bash
git auth login # with one account
git auth login # with another account
git auth switch # to change between them
```

Add this to the `~/.ssh/config` file:

```
# GitHub personal
Host personal
HostName github.com
AddKeysToAgent yes
UseKeyChain yes
IdentityFile ~/.ssh/personal
IdentitiesOnly yes

# GitHub work
Host work
HostName github.com
AddKeysToAgent yes
UseKeyChain yes
IdentityFile ~/.ssh/id_ed25519
IdentitiesOnly yes
```

Then, when you clone a repository, make sure you modify the `origin` accordingly:

```
git remote remove origin
git remote add origin git@:/.git
```

Also make sure to locally setup the .git/config directory or use aliases to set the correct environment variables each time. [Source](https://stackoverflow.com/a/69509290/8849071)

## Dependencies

### [Zoxide (smarter cd)](https://github.com/ajeetdsouza/zoxide)

```bash
brew install zoxide
```

### [Lazy git](https://github.com/jesseduffield/lazygit?tab=readme-ov-file#homebrew)

```bash
brew install lazygit
```

### Stow

This is the syslink farm to keep all the configuration files linked with the ones in the repository. [Source](https://www.youtube.com/watch?v=y6XCebnB9gs).
You can check `.stow-local-ignore`.

```bash
sudo apt-get install stow
brew install stow # macos
```

### ripgrep

This is needed to support search in neovim.

```bash
brew install ripgrep
```

### fd

```bash
brew install fd
```

### [Pyenv](https://github.com/pyenv/pyenv)

```bash
brew install pyenv
```

### [Tmux](https://github.com/tmux/tmux/wiki/Installing)

```bash
brew install tmux
```

We also need to install the [tmux plugin manager](https://github.com/tmux-plugins/tpm):

```bash
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
```

Remember to press `I` (the leader key in my configuration is ``) to install the tmux plugins.

### Neovim

```bash
brew install neovim
```

### Colorls

```bash
brew install ruby
gem install colorls
```