Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aszot/dot-files
Configuration files for my computer setup on macOS
https://github.com/aszot/dot-files
dotfiles macos tmux
Last synced: about 2 months ago
JSON representation
Configuration files for my computer setup on macOS
- Host: GitHub
- URL: https://github.com/aszot/dot-files
- Owner: ASzot
- Created: 2017-01-05T01:13:08.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2024-06-28T01:31:55.000Z (7 months ago)
- Last Synced: 2024-06-28T02:39:30.362Z (7 months ago)
- Topics: dotfiles, macos, tmux
- Language: Shell
- Size: 11.4 MB
- Stars: 7
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Computer Dot Files
Configuration files.## Getting Started
```
git clone https://github.com/ASzot/Dot-Files.git ~/.dot-files
```## Commands
Shortcuts are defined in `.zshrc`. They are listed here:
* `creategit`: Create a GitHub deploy key. Note that when cloning you specify
the project name as the host instead of [email protected]. So if you named the
public key `myproj` and the project was at github.com/aszot/project, notice
they don't have to match, you would clone with `git clone myproj:aszot/project.git`.
* `upme`: Fetch settings from github and apply them.
* `sa`: Switch to the specified conda environment.
* `rs`: Reload zshrc.
* `py`: Alias for `python`.
* `cw`: Kill all tmux windows except for the current one.
* `nv`: Alias for `nvidia-smi`
* `sfor`: Alias for `ps aux | grep` to search for a process.## Additonal Config
`./set_env_vars.sh` for system dependent settings. To setup auto conda activate, add this:
```
cd () { builtin cd "$@" && chpwd; }
chpwd () {
case $PWD in
/Users/andrewszot/Documents/code/habitat-lab)
conda activate hablab
;;
/Users/andrewszot/Documents/code/p-hr)
conda activate hr
;;
esac
}
```## Scripts
* `push.sh`: Pushes the current settings from the machine into the repository.
* `pull.sh`: Pulls the current settings from the GitHub repository and puts them on the Ubuntu machine.
* `create_gh_key.sh`: Script for automatically configuring GitHub keys.
* `first_pull.sh`: Pulls all settings from repo to local machine and also pulls additional files such as SSH config that should only be pulled once as they will be overwritten.### First Install
- `cd` into this directory.
- Run `sh first_pull.sh`.
- Start neovim.
- `:PlugInstall`. Quit and run this again if you get an error about one of the plugins installing.### Setting Up a Mac Environment
- Install 1pass: https://1password.com/downloads/mac/
- Install iterm: https://iterm2.com
- Download drive for desktop: https://www.google.com/drive/download/
- Download slack from app store
- Download this repo `git clone https://github.com/ASzot/Dot-Files.git .dot-files`
- Install brew https://brew.sh/
- Install oh-my-zsh `sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"`
- Run installation script: `sh ~/.dot-files/macos_setup.sh`
- Install rectangle: https://github.com/rxhanson/Rectangle
- Link `me` folder: `ln -s "/Users/andrewszot/My Drive/personal/me" /Users/andrewszot/me`
- Link papers folder: `ln -s "/Users/andrewszot/My Drive/papers/read" /Users/andrewszot/papers`
- Install neovim: `brew install neovim`
- Download forklift 3 https://binarynights.com see `me/wiki/guides/code/macos.md` for product key. Be sure to download forklift 3, not an earlier version.
- System preferences:
- Turn off system sounds: `System Preferences -> Sound -> Sound Effects`
- Add shortcuts for Preview. `System Preferences -> Keyboard -> Keyboard Shortcuts -> App Shortcuts` Add shortcut for preview. The menu title items are "Next Page" and "Previous Page".### Vim Usage
Then run `sh vim_setup.sh`.