https://github.com/faizmokh/dotfiles
My ๐ป's dotfiles
https://github.com/faizmokh/dotfiles
dotfiles hammerspoon vim vundle
Last synced: 3 months ago
JSON representation
My ๐ป's dotfiles
- Host: GitHub
- URL: https://github.com/faizmokh/dotfiles
- Owner: faizmokh
- Created: 2018-08-16T10:55:20.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2024-06-14T02:19:44.000Z (about 2 years ago)
- Last Synced: 2025-03-25T23:49:46.062Z (about 1 year ago)
- Topics: dotfiles, hammerspoon, vim, vundle
- Language: Lua
- Homepage:
- Size: 53.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ยท
There's many like this but this is mine.
## Set up dotfiles on a new machine
1. Install [Brew][1] package manager
```
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
```
2. Install `git`
```
brew install git
```
3. Add the following `alias` in your `.bashrc`.
```
alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'
```
4. Add `.cfg` in your global `.gitignore` to avoid recursion issue when cloning this repository.
```
echo ".cfg" >> ~/.gitignore
```
5. Clone this repository
```
git clone --bare git@github.com:faizmokh/dotfiles.git $HOME/.cfg
```
6. Define `alias` for current scope
```
alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'
```
7. Checkout the content from repository to your `$HOME`. If there's any issue, simply checkout the working files.
```
config checkout
```
8. Set `showUntrackedFiles` to `no`
```
config config --local status.showUntrackedFiles no
```
9. Now, you can use `config` like how you normally use `git`. Eg:
```
config status
config add .vimrc
config commit -m "Add vimrc"
config add .bashrc
config commit -m "Add bashrc"
config push
```
## If there's a file permissions issue
```
sudo chown -R `whoami` /usr/local/*
sudo chown -R `whoami` /usr/local/
```
## To turn of brew analytics
```
brew analytics off
```
## To change screenshots locations
```
touch ~/Documents/screenshots
defaults write com.apple.screencapture location ~/Documents/screenshots
```
## Install apps define in `.Brewfile`
To install, run the following in `$HOME` directory:
```
brew bundle --global
```
## Set up [Vundle][2]
Vundle is a plugin manager for vim. To set it up, run the following:
```
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
```
Launch vim and run `:PluginInstall`
### References
If something fucks up, simply refer to the original article
by [Nicola Paolucci][3] to debug it yourself.
[1]:https://brew.sh/
[2]:https://github.com/VundleVim/Vundle.vim
[3]:https://developer.atlassian.com/blog/2016/02/best-way-to-store-dotfiles-git-bare-repo/