dotfiles/README.md
2023-10-14 12:05:00 +03:00

98 lines
3.5 KiB
Markdown

<h1 align="center">Kan`s dotfiles</h1>
<p align="center">
<a href="https://github.com/TheK4n">
<img src="https://img.shields.io/github/followers/TheK4n?label=Follow&style=social" alt="TheK4n">
</a>
<a href="https://github.com/TheK4n/dotfiles">
<img src="https://img.shields.io/github/stars/TheK4n/dotfiles?style=social" alt="project">
</a>
</p>
## Content
* [Project description](#chapter-0)
* [Installation](#chapter-1)
<a id="chapter-0"></a>
## Project description
Config files for:
* bash
* zsh
* alacritty
* tmux
* ssh
* git
* ranger
* i3
* vim
* nvim
### Prompt
<p align="center">
<img src=".assets/prompt.png" alt="Prompt">
</p>
### i3
| Feature | Shortcut |
|:------------------------|:-------------------------------------------------------:|
| Full Screen | <kbd>PrtScr</kbd> |
| Selection | <kbd>Shift</kbd> + <kbd>PrtScr</kbd> |
| Active Window | <kbd>Super</kbd> + <kbd>PrtScr</kbd> |
| Clipboard Full Screen | <kbd>Ctrl</kbd> + <kbd>PrtScr</kbd> |
| Clipboard Selection | <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>PrtScr</kbd> |
| Clipboard Active Window | <kbd>Ctrl</kbd> + <kbd>Super</kbd> + <kbd>PrtScr</kbd> |
### ZSH global aliases
| Alias | Equals | Description |
|:------------------------|:-------------------------------------------------|:----------------------------|
| `git diff L` | `git diff \| less -R` | View stdout |
| `cat main.py HL py` | `cat main.py \| highlight -O ansi --syntax py` | Highlight syntax |
| `redis-server BG` | `redis-server &>/dev/null &` | Run command in background |
You can add your files to the `~/.subbash/bashrc.d` directory for bash or `~/.subzsh/zshrc.d` directory for zsh so that they automatically run in ascending order when you open a terminal.\
Example:\
`~/.subbash/bashrc.d/01_hello.sh`
```bash
echo "Hello $USER!"
```
### VIM shortcuts
| Command | Description |
|:-----------------------:|:----------------------------------------------------|
| <kbd>,ff</kbd> | Project files search by Telescope |
| <kbd>,fg</kbd> | Search words in project |
| <kbd>,eh</kbd> | Show hiden symbols like tabs |
| <kbd>,l</kbd> | Line number styles |
| <kbd>,c</kbd> | Highlight cursor line |
| <kbd>,/</kbd> | Toggle search highlight |
| <kbd>,qq</kbd> | Delete current buffer |
| <kbd>,qa</kbd> | Close all without saving |
| <kbd>,t</kbd> | Tagbar |
| <kbd>,rr</kbd> | Run script in new tab (python, go, preview markdown)|
| <kbd>,rs</kbd> | Run script in new tab by shebang |
| <kbd>,rf</kbd> | Format file (go, rust) |
<a id="chapter-1"></a>
## Installation
```bash
git clone https://github.com/TheK4n/dotfiles
cd dotfiles
./install bash zsh ...
```
<h1 align="center"><a href="#top"></a></h1>