dotfiles/README.md

53 lines
3.8 KiB
Markdown
Raw Normal View History

2020-10-23 08:53:37 +00:00
# Dotfiles
2021-01-29 00:10:50 +00:00
These are my personal dotfiles. This also include an automated installer for certain packages (Arch Linux specific) and for putting the dotfiles in place.
Source code for this automated script is in `src` directory, and the dotfiles are located in `home` and `root` directories respectively.
2020-10-23 08:53:37 +00:00
2021-01-29 00:10:50 +00:00
You are highly adviced to first go through these dotfiles yourself and adjust them to your liking.
## What does it do
- Fully fledged ZSH configuration without the need to rely on oh-my-zsh
- oh-my-zsh configuration is also supported, but it is off by default, adjust [`.zshrc`](home/.zshrc) to enable it
- Even though enabling it is an option, it is not a necessary thing to do, oh-my-zsh has a lot of code that is mostly irrelevant and unused, these dotfiles give you the ability to completely avoid it, if you desire to do so
- Custom [prompt](home/.config/sh/theme), both for oh-my-zsh configuration or for standalone usage
- Custom [VIM configuration](home/.config/vim/vimrc) (this was designed for regular vim, nvim support can't be guaranteed)
- Many handy [aliases](home/.config/sh/aliases) (likely too many, you should adjust that to your needs)
- [XDG configuration](home/.config/sh/environ) to avoid too much cluttering in home directory
- [Automatic handlers](home/.config/sh/handlers) which override default command not found behavior to show the package to which given command belongs (requires pkgfile on Arch Linux)
- Automated package installation for Arch Linux, which includes many handy packages. You should certainly take a look at which packages will be installed and adjust [`packages.yaml`](packages.yaml) before you run it.
2021-01-29 00:33:30 +00:00
- Extensive [vscode settings](home/.config/Code/User/settings.json), note that these are the settings which I like, you will probably want to adjust them to your personal needs, or perhaps even replace them
2021-03-01 19:27:34 +00:00
- [Opensnitch firewall rules](root/etc/opensnitchd/rules), which block most unauthorized traffic and only allow needed things. This also blocks spotify ads. These rules are located
2020-10-23 08:53:37 +00:00
## Requirements
2021-03-01 19:26:36 +00:00
`curl` and `tar`, or `git` to clone the repository itself.
2021-02-14 16:34:19 +00:00
Installation uses `python` and `pip` and `pyyaml` library for python, but that will get installed automatically by the `install.sh` script.
2021-01-29 00:10:50 +00:00
## Sample images
2020-10-23 08:53:37 +00:00
2021-01-29 00:33:30 +00:00
- Prompt (Fully adjustable, either manually [here](home/.config/sh/theme), or using other oh-my-zsh themes and removing the custom theme from `.zshrc`) ![image](https://user-images.githubusercontent.com/20902250/106214493-2ada3480-61cf-11eb-9226-5293b6eb3c75.png)
2021-01-29 00:10:50 +00:00
- Vim configuration (Fully adjustable, simply edit [`vimrc`](home/.config/vim/vimrc)) ![image](https://user-images.githubusercontent.com/20902250/106214028-3c6f0c80-61ce-11eb-96a2-3a46c77853e7.png)
- Automatic unknown command package handler ![image](https://user-images.githubusercontent.com/20902250/106214104-645e7000-61ce-11eb-9c80-d0762338ce59.png)
2021-02-14 16:34:19 +00:00
## Installation
2020-10-23 08:53:37 +00:00
2021-03-01 19:26:36 +00:00
Clone this repository anywhere you like
2021-01-29 00:10:50 +00:00
`$ git clone https://github.com/ItsDrike/dotfiles`
2020-10-23 08:53:37 +00:00
2021-03-01 19:26:36 +00:00
If you don't want to install git (running straight from newly installed os), you can use `curl`:
`$ curl -LJO https://github.com/ItsDrike/dotfiles/tarball/master`
And extract from `.tar.gz` archive:
2021-02-14 16:34:19 +00:00
`$ tar xvf [archive name]`
## Running the script
2021-01-29 00:14:24 +00:00
Before you run, you should take a look at the files included and adjust them however you like.
2020-10-23 08:53:37 +00:00
2021-01-29 00:33:30 +00:00
- All files which will be added are in [`home/`](home) and [`root/`](root) directory. You can remove files which you don't want, or adjust them in any way.
- You should also take a look at [`packages.yaml`](packages.yaml) and remove all packages which you don't want and add those you do.
2020-10-23 08:53:37 +00:00
2021-02-14 16:34:19 +00:00
When you are prepared, you can run the installer (assuming you're in the clonned directory):
`$ chmod +x install.sh` (Make installation script executable)
`$ sh install.sh` (run the installation script, which will begin the instalaltion)