Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/robb-j/dotfiles
My personal computer configurations, get your own
https://github.com/robb-j/dotfiles
dotfiles homebrew zshrc
Last synced: about 1 month ago
JSON representation
My personal computer configurations, get your own
- Host: GitHub
- URL: https://github.com/robb-j/dotfiles
- Owner: robb-j
- Created: 2021-02-13T15:29:00.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-02-22T13:22:36.000Z (10 months ago)
- Last Synced: 2024-04-19T16:20:35.896Z (8 months ago)
- Topics: dotfiles, homebrew, zshrc
- Language: Shell
- Homepage:
- Size: 81.1 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# robb-j's dotfiles
These files are my dotfiles to be shared between development machines
## files
**[zshrc](./.zshrc)** - common zsh configuration, usage:
```sh
# ~/.zprofile
# (for Apple Silicon)
eval "$(/opt/homebrew/bin/brew shellenv)"export ZSH="$HOME/.oh-my-zsh"
export DOTFILES_DIR="$HOME/dev/dotfiles"
source "$DOTFILES_DIR/.zprofile"# (optional)
# export PATH=$(brew --prefix openssh)/bin:$PATH# ~/.zshrc
source "$DOTFILES_DIR/.zshrc"
```**[ssh_config](./ssh_config)** - ssh configuration
```conf
# ~/.ssh/config
Include ~/dev/dotfiles/ssh_config
```**[gitconfig](./.gitconfig)** - git configuration
```toml
# ~/.gitconfig
[include]
path = ~/dev/dotfiles/.gitconfig
```**[blue-night](./blue-night.terminal)** - custom macOS terminal profile.
Import it in Terminal.app and export it back to apply updates.## global commands
```sh
# Start editing the zshrc and re-source it afterwards
zshrc# Update the dotfiles repo (if the repo is clean)
update_dotfiles
```## helpful commands
```sh
# cd to/this/directory# check brew dependencies
brew bundle check# generate a new brewfile
brew bundle dump# update from the current brewfile
brew bundle install# uninstall dependencies not in brewfile
brew bundle cleanup# create a defaults diff
defaults read > tmp/before.txt
# do some changes ...
defaults read > tmp/after.txt
opendiff tmp/before.txt tmp/after.txt# force install rosetta
sudo /usr/sbin/softwareupdate --install-rosetta --agree-to-license
```- https://scriptingosx.com/2016/11/editing-property-lists/
## container use
```sh
# cd to/this/folder# generate server key
ssh-keygen container/server_key# setup authorized keys
cat ~/.ssh/id_rsa.pub > container/authorized_keys# build and run development
./container/dev.sh# ssh into the container
ssh -p 30022 [email protected]# stop the container (in a new terminal)
docker ps
docker stop $CONTAINER_ID
```