Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wem1c/dotfiles
My Linux config files.
https://github.com/wem1c/dotfiles
archlinux dotfiles dotfiles-linux swaywm wayland
Last synced: 28 days ago
JSON representation
My Linux config files.
- Host: GitHub
- URL: https://github.com/wem1c/dotfiles
- Owner: wem1c
- Created: 2022-12-02T17:32:54.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-07-07T15:42:27.000Z (7 months ago)
- Last Synced: 2024-11-14T06:28:41.559Z (3 months ago)
- Topics: archlinux, dotfiles, dotfiles-linux, swaywm, wayland
- Language: Python
- Homepage:
- Size: 6.8 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# wemic's dotfiles
Welcome reader! These are my dotfiles. Feel free to read/copy them as you wish!
## Setup Repo
Setup a bare git repository in your home directory. Bare repositories have no
working directory, so setup an alias to avoid typing the long command. Add the
git directory `~/.dotfiles/` to the gitignore as a security measure. Setup
remote and push. Hide untracked files when querying the status.```bash
git init --bare "$HOME/.dotfiles"echo 'alias dotfiles="/usr/bin/env git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME"' \
>> "$HOME/.zshrc"
source "$HOME/.zshrc"echo '.dotfiles' >> "$HOME/.gitignore"
dotfiles add "$HOME/.gitignore"
dotfiles commit -m 'Git: Add gitignore'dotfiles remote add origin https://github.com/alfunx/.dotfiles
dotfiles push --set-upstream origin master
dotfiles config --local status.showUntrackedFiles no
```## Track Files
Use the default git subcommands to track, update and remove files. You can
obviously also use branches and all other features of git.```bash
dotfiles status
dotfiles add .zshrc
dotfiles commit -m 'Zsh: Add zshrc'
dotfiles add .vimrc
dotfiles commit -m 'Vim: Add vimrc'
dotfiles push
```To remove a file from the repository while keeping it locally you can use:
```bash
dotfiles rm --cached ~/.some_file
```